rw_resource_util::memory

Function get_container_memory_used

source
fn get_container_memory_used(
    cgroup_version: CgroupVersion,
) -> Result<usize, Error>
Expand description

Returns the memory used in a container if running in a container else returns the system memory used.