Skip to main content

tree_rss

Function tree_rss 

Source
pub fn tree_rss(
    root: u32,
    processes: &Snapshot,
) -> Result<(u64, usize), SamplingError>
Expand description

Sum observed resident bytes for a root and its descendants, counting each leader once.

Missing roots yield zero; cycles cannot repeat an observation. This is a sampled sum of native RSS, not unique physical memory or proof that a process is still live.

ยงErrors

Returns an arithmetic overflow rather than wrapping the resident byte total.