Skip to main content

Module system

Module system 

Source
Available on crate feature system-stats only.
Expand description

System-level memory and CPU stats. Available with the system-stats feature.

Wraps sysinfo to capture peak resident set size (RSS) and the CPU time consumed by the current process during a stress run.

The captured stats are an approximation: sysinfo polls the OS, so values reflect what was visible at sample time, not a continuous trace. For tight per-thread CPU accounting, prefer the platform-specific clocks in your benchmark harness.

Structsยง

SystemSampler
Stateful sampler that refreshes process info on demand.
SystemStats
Snapshot of process-level memory and CPU usage.