Module process_stats
Expand description
Self-process resource sampling — RSS (resident memory) and CPU%.
Structs§
Functions§
- sample
- Sample current RSS + CPU%. Cheap to call — refreshes only this process and only the CPU/memory fields. Safe to call from any thread.