get_memory_usage_from_cgroups

Function get_memory_usage_from_cgroups 

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

Get the usage of memory in bytes from cgroups filesystem.

  • Return None if it fails to read the memory usage or not on linux or cgroup is v1.