Skip to main content

statm

Function statm 

Source
pub fn statm() -> Result<impl Iterator<Item = usize>>
Expand description

Returns process memory statistics as page counts.

Linux parses a snapshot of /proc/self/statm in kernel field order. The returned iterator owns the parsed counts.

ยงPanics

Panics when statm contains non-UTF-8 or non-integer data, or more than 12 fields.