jade.resource_monitor.ResourceMonitorLogger¶
- class jade.resource_monitor.ResourceMonitorLogger(name, stats: ResourceMonitorStats, include_child_processes=True, recurse_child_processes=False)[source]¶
Bases:
object
Logs resource utilization stats on periodic basis.
Methods
Logs CPU resource stats information.
Logs disk stats.
Logs memory resource stats information.
Logs memory resource stats information.
log_process_stats
(pids)Log stats for each process.
log_resource_stats
([ids])Logs resource stats information as structured job events for the current interval.
Attributes
Return the name of the monitor.
- log_process_stats(pids)[source]¶
Log stats for each process.
- Parameters:
ids (dict, defaults to None) – Maps job name to process ID.
- log_resource_stats(ids=None)[source]¶
Logs resource stats information as structured job events for the current interval.
- Parameters:
ids (dict, defaults to None) – Maps job name to process ID.
- property name¶
Return the name of the monitor.