Skip to main content

parse_ram_vmstat

Function parse_ram_vmstat 

Source
pub fn parse_ram_vmstat(
    vm_stat_output: &str,
    memsize_output: &str,
) -> Option<f64>
Expand description

Parse RAM usage from macOS vm_stat + sysctl hw.memsize output.

vm_stat_output is the output of vm_stat. memsize_output is the output of sysctl hw.memsize (e.g. hw.memsize: 8589934592).