pub fn process_rss_kb() -> Option<u64>Expand description
Current resident set size of this process in KiB, or None if it can’t be
determined. Linux reads VmRSS from /proc/self/status; macOS asks
libproc (proc_pidinfo/PROC_PIDTASKINFO) — without it the whole
--max-memory ceiling silently did not exist on macOS, and the
115_streaming_cli Fatal-contract guard caught exactly that on macOS CI
(an over-budget run exited 0). Cheap enough to poll a few times a second.