Skip to main content

process_tree_memory_mib

Function process_tree_memory_mib 

Source
fn process_tree_memory_mib(pids: &[i32]) -> (u64, u64)
Expand description

Sum of PSS and VmRSS across all given PIDs, each converted to MiB. One Process::open per PID reads both sources. PSS matches Python memory_mib; RSS is retained for consumers that need resident set size.