CTPROF_METRICS

Static CTPROF_METRICS 

Source
pub static CTPROF_METRICS: &[CtprofMetricDef]
Expand description

Registry of per-thread metrics. Order here is the default display order for rows that have no numeric delta to sort by (ties fall back to registry order). Names are the ASCII short-form used in capture code; long-form display is the same — no translation layer.

PSI is intentionally not in this registry. Each AggRule variant’s accessor takes &ThreadState and returns a crate::metric_types newtype (or a primitive the dispatch coerces via to_string() for ModeChar / ModeBool); only per-thread data fits that signature, while Pressure Stall Information is per-snapshot (host-level) and per-cgroup. PSI surfaces in dedicated secondary tables under “## Host pressure / …” and “## Pressure / …” headers, rendered by write_diff / write_show directly rather than via AggRule. See Psi / PsiResource / PsiHalf for the data model.