pub fn emit_process_memory_stats(system: &mut System)Expand description
Emits this process’s own RSS/virtual memory size. Allocator-agnostic
(reads from the OS via sysinfo), so this runs for every consumer of
spawn_system_monitor, including non-jemalloc binaries.
Takes a caller-owned System so repeated calls reuse it instead of each
constructing a fresh instance (which re-reads /proc/stat etc.).