Skip to main content

Module process_stats

Module process_stats 

Expand description

Self-process resource sampling — RSS (resident memory) and CPU%.

Structs§

ProcessStats

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.