Skip to main content

run_xray

Function run_xray 

pub fn run_xray(db: &FactsDb, limit: i64) -> Result<Vec<XRayEntry>>
Expand description

Aggregate function-level cognitive complexity per (path, function) from the complexity_metrics table for the X-Ray sunburst (W8). Returns at most limit rows ordered by cognitive DESC, since the sunburst becomes unreadable past a few hundred functions and the JSON payload would blow up on monorepos otherwise.