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.

get_cpu_stats()

Gets CPU current resource stats information.

get_disk_stats()

Gets current disk stats.

get_memory_stats()

Gets current memory resource stats.

get_network_stats()

Gets current network stats.

get_process_stats(pid[, include_children, ...])

Gets current process stats.

Attributes

DISK_STATS

NET_STATS

name

Return the name of the monitor.

get_cpu_stats()[source]

Gets CPU current resource stats information.

get_disk_stats()[source]

Gets current disk stats.

get_memory_stats()[source]

Gets current memory resource stats.

get_network_stats()[source]

Gets current network stats.

clear_stale_processes(cur_pids)[source]

Remove cached process objects that are no longer running.

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.