pub fn shm() -> Result<usize>Expand description
Returns shared resident memory size in bytes, or zero outside Linux.
The value is the third field of Linux /proc/self/statm, scaled by the
system page size. It is sampled separately from the other memory fields.
ยงPanics
On Linux, panics if statm is malformed, exceeds parser capacity, or lacks
the requested field. Panics if converting that page count overflows usize
bytes.