pub fn process_peak_rss_kb() -> Option<u64>Expand description
Kernel-tracked PEAK resident set of this process in KiB (VmHWM), or None
if it can’t be determined. Unlike process_rss_kb’s point-in-time sample,
this is the true high-water mark over the whole process lifetime — no
sampling cadence can miss a spike — which makes it the honest basis for the
end-of-run “this document needed N” report (peak_memory_report).