Skip to main content

sample

Function sample 

Source
pub fn sample() -> ProcessStats
Expand description

Sample current RSS + CPU%. Cheap to call (single /proc read on Linux). Safe to call from any thread.