Module mprober_lib::cpu
source · [−]Structs
Functions
Calculate all CPU utilization in percentage with or without the average within a specific time interval. It will cause the current thread to sleep. If the number it returns is 1.0
, means 100%
.
Get all CPUs’ stats with or without the average by reading the /proc/stat
file.
Get average CPU stats by reading the /proc/stat
file.
Calculate average CPU utilization in percentage within a specific time interval. It will cause the current thread to sleep. If the number it returns is 1.0
, means 100%
.
Get CPU information by reading the /proc/cpuinfo
file.