pub(crate) fn read_process_rss_bytes() -> Option<usize>Expand description
Returns the current process’s RSS (Resident Set Size) in bytes, or None
if measurement is not supported on this platform.
Linux: parses /proc/self/statm. Field 1 (index 1) is RSS in pages;
multiplied by the system page size (typically 4096).
macOS: returns None — requires task_info FFI which conflicts with
unsafe_code = "forbid". A future release can add it via the mach2
crate.