Skip to main content

sample

Function sample 

pub fn sample() -> ProcessStats
Expand description

Sample current RSS + CPU%. Cheap to call — refreshes only this process and only the CPU/memory fields. Safe to call from any thread.