pub fn physical_memory() -> u64
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.
NSProcessInfo
MemTotal
/proc/meminfo