Skip to main content

Module stats

Module stats 

Source
Expand description

Per-graph aggregate stats: the mean of each tracked numeric metric across the project’s file nodes. Zero/missing values are excluded from a metric’s average (matching the historical behavior); a metric is emitted only when its average is positive.

Functions§

compute_stats
Compute the mean of each metric in stat_keys over all internal (file) nodes. Zero/missing values are excluded (historical behaviour); a metric is emitted only when its average is positive. The key set is data-driven — the caller passes the tier-2 stat metrics (from the registry) plus coupling keys — so this module names no metric.