Skip to main content

physical_memory

Function physical_memory 

Source
pub fn physical_memory() -> u64
Expand description

The machine’s physical memory in bytes, with or without a GPU: NSProcessInfo on macOS, MemTotal of /proc/meminfo on Linux, 0 where neither is available.