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