Repository navigation
DOOM study: cx10 heatmap beside the ratio plots (Part of #6097, slice 5) - #6865
Merged
Merged
Conversation
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]>
Contributor
|
No description provided. |
6 of 7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #6097. Slice 5 of the per-subsystem distributions: a
cx10plot beside the ratio plots.subsystem_plot.py --metric cx10writessubsystem_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. Theother %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.pydoes 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 asubsystem_distribution.pychange. (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).subsystem_plot.py --metric cx10and--metric complexityon a realsubsystem_distribution.csvfrom a local scan (55 rows, engine SHA 2ac09c8, not current HEAD): both wrote well-formed SVGs. The layout was not inspected visually.--ratchetsnot run.Checklist: partial [c:5b53dc02] -- study_report wiring, sfs-side pieces
🤖 Generated with Claude Code