pub fn data() -> Result<usize>Expand description
Returns the process’s data and stack size in bytes, or zero outside Linux.
The value is the sixth 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.