mindspore.dataset.config.get_monitor_sampling_interval

mindspore.dataset.config.get_monitor_sampling_interval()

Get the global configuration of sampling interval of performance monitor. If set_monitor_sampling_interval is never called before, the default value(1000) will be returned.

Returns

int, interval (in milliseconds) for performance monitor sampling.

Examples

>>> # Get the global configuration of monitor sampling interval.
>>> # If set_monitor_sampling_interval() is never called before, the default value(1000) will be returned.
>>> sampling_interval = ds.config.get_monitor_sampling_interval()