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ยง
- System
Sampler - Stateful sampler that refreshes process info on demand.
- System
Stats - Snapshot of process-level memory and CPU usage.