pub fn total_memory_used_bytes() -> usize
Expand description
Returns the total memory used by the system in bytes.
If running in container, this function will read the cgroup interface files for the memory used, if interface files are not found, will return the memory used in the system as default. The cgroup mount point is assumed to be at /sys/fs/cgroup by default.
§Examples
Basic usage:
ⓘ
let mem_used = memory::total_memory_used_bytes();