Skip to main content

observations

Function observations 

Source
pub fn observations() -> Option<BTreeMap<MetricKey, u64>>
Expand description

Return the most recent resource usage observations of this process.

None until the sampler has taken its first sample, and forever in a process that never registered one. An observation the sampler could not read is absent from the map, never present as zero.