Structs§
Functions§
- get_
all_ cpu_ utilization_ in_ percentage - 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
, means100%
. - get_
all_ cpus_ stat - Get all CPUs’ stats with or without the average by reading the
/proc/stat
file. - get_
average_ cpu_ stat - Get average CPU stats by reading the
/proc/stat
file. - get_
average_ cpu_ utilization_ in_ percentage - 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
, means100%
. - get_
cpus - Get CPU information by reading the
/proc/cpuinfo
file.