Skip to main content

statm_bytes

Function statm_bytes 

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

Returns the statm page counts converted to bytes.

Each page count is multiplied by the system page size as the iterator is consumed. The field order remains the Linux statm order.

ยงPanics

On Linux, panics before returning if statm is malformed or exceeds parser capacity. Panics while iterating if converting a page count overflows usize bytes.