Skip to main content

Module cpu

Module cpu 

Source
Expand description

CPU utilization from /proc/stat: the mean, the hottest core and the per-core quartiles (SRD-118 §3.1).

Structs§

CpuReading
Per-category CPU readings: the mean, the hottest core, and the SHAPE of the per-core distribution.
CpuTicks
Cumulative jiffy counts for one cpu line: (busy, total).

Functions§

core_util_quartiles
Per-core utilization quartiles between two snapshots: (p25, p50, p75, cores). Same shared-prefix rule as max_core_util.
cpu_util
Utilization between two tick snapshots: Δbusy / Δtotal.
max_core_util
The most saturated core between two snapshots. Core lists of different lengths (offline/online between samples) compare over the shared prefix.
parse_proc_stat
Aggregate + per-core cumulative ticks from /proc/stat.