Function mprober_lib::memory::free
source · pub fn free() -> Result<Free, ScannerError>Expand description
Get memory information like the free command by reading the /proc/meminfo file.
use mprober_lib::memory;
let free = memory::free().unwrap();
println!("{free:#?}");