jade.resource_monitor.ResourceMonitor¶
- class jade.resource_monitor.ResourceMonitor(name)[source]¶
Bases:
object
Monitors resource utilization statistics
Methods
clear_stale_processes
(cur_pids)Remove cached process objects that are no longer running.
Gets CPU current resource stats information.
Gets current disk stats.
Gets current memory resource stats.
Gets current network stats.
get_process_stats
(pid[, include_children, ...])Gets current process stats.
Attributes
DISK_STATS
NET_STATS
Return the name of the monitor.
- get_process_stats(pid, include_children=True, recurse_children=False)[source]¶
Gets current process stats. Returns None if the pid does not exist.
- property name¶
Return the name of the monitor.