[][src]Function sys_metrics::memory::get_memory

pub fn get_memory() -> Result<Memory, Error>

Return the Memory struct.

Only contains the virtual/swap memory total/available.

On linux it will get them from the sysinfo.

On macOS it will use unsafe syscall due to specific OSX implementation.