get_cpu_usage_from_cgroups

Function get_cpu_usage_from_cgroups 

Source
pub fn get_cpu_usage_from_cgroups() -> Option<i64>
Expand description

Get the usage of cpu in millicores from cgroups filesystem.

  • Return None if it’s not in the cgroups v2 environment or fails to read the cpu usage.