Skip to content

DOOM study: cx10 heatmap beside the ratio plots (Part of #6097, slice 5) - #6865

Merged
squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-cx10-plot
Oct 28, 2026
Merged

squid-shepherd[bot] merged 1 commit into
mainfrom
churn/6097-cx10-plot

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Part of #6097. Slice 5 of the per-subsystem distributions: a cx10 plot beside the ratio plots.

subsystem_plot.py --metric cx10 writes subsystem_cx10.svg: ports by linuxdoom subsystem, each cell the share (%) of the port's functions in that subsystem with complexity >= 10. It is an absolute share, not a ratio, so the scale is linear (white at 0%, red at 50% and over, CX10_FULL); a 0% cell is white, a subsystem absent from the port is grey. The other % column is kept. The p90 columns stay in the CSV and md: a p90 has no ratio column to colour, and a second absolute scale per metric would not be comparable across metrics.

Class / Sibling gaps

Class: output surfaces of the per-subsystem distribution (CSV, md, plot, study report, sfs). Handled: CSV and md (#6744, #6833), lineage placement (#6846), ratio heatmaps (#6863), the cx10 heatmap (this PR; the only other tabulated value with a plottable column). Sibling gaps: (1) study_report.py does not embed or link the SVGs; it needs the owner to pick which metric(s) to show and a scan at current HEAD (the scan on disk is for an older engine SHA). (2) p90 plots: deliberately not drawn, see above; a p90-over-linuxdoom-p90 column would need a subsystem_distribution.py change. (3) "sfs-side pieces" is undefined in the issue; needs the owner to say what is meant.

Remaining slices

study_report.py + its test (embed the SVGs); sfs-side pieces (owner).

Facts checked

  • pytest tests/tools/test_doom_subsystem_plot.py tests/tools/test_doom_subsystem_distribution.py: 15 passed (7 in the plot file, one new).
  • Ran subsystem_plot.py --metric cx10 and --metric complexity on a real subsystem_distribution.csv from a local scan (55 rows, engine SHA 2ac09c8, not current HEAD): both wrote well-formed SVGs. The layout was not inspected visually.
  • No engine, golden or ledger input touched; --ratchets not run.

Checklist: partial [c:5b53dc02] -- study_report wiring, sfs-side pieces

🤖 Generated with Claude Code

subsystem_plot.py --metric cx10 plots the share of functions with complexity >= 10 per port and subsystem, linear white to red at 50%.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 28, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot marked this pull request as ready for review October 28, 2026 05:12
@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 28, 2026 05:19
@squid-shepherd
squid-shepherd Bot merged commit 9cf59f6 into main Oct 28, 2026
62 checks passed
@squid-shepherd
squid-shepherd Bot deleted the churn/6097-cx10-plot branch October 28, 2026 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant