Repository navigation
DOOM study: per-subsystem complexity distributions, slice 1 (Part of #6097) - #6744
Merged
Merged
Conversation
…6097) New subsystem_distribution.py: per port and linuxdoom subsystem, complexity count / median / p90 / share >= 10 and the median ratio to linuxdoom's same subsystem. One metric family; plots, other metrics and sfs pieces are later slices. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Contributor
|
No description provided. |
Contributor
|
No description provided. |
This was referenced Oct 26, 2026
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. Checklist: partial [c:5b53dc02] -- complexity only; other metrics, plots and the sfs-side pieces are left.
Slice 1 of the per-subsystem distributions for the DOOM ports. New
tests/tools/doom_speedrun/subsystem_distribution.pysplits each licensed port's code functions by linuxdoom subsystem (lineage.subsystem, file directory and file-name prefix) and reports ONE metric family, complexity: count, median, p90, share >= 10, and the port's median over linuxdoom's median in the same subsystem (blank under 5 functions on either side). It is a separate module that imports onlyquantile,CODE_LANGUAGESandMIN_FUNCTIONSfromdistribution.py, so it does not conflict with #6741 (vendored exclusion): once that lands, vendored code would still be counted here, since this module reads the scan DB itself (see Sibling gaps).Class / Sibling gaps
Class: per-subsystem distribution of the per-function engine metrics (complexity, LOC, fan-out, token mass, args) for the licensed ports. Handled here: complexity. A port that renamed its files has its functions under
other; each port'sother %column reports how much that is.Sibling gaps (no burned-estate program needs any of these; all are DOOM study work):
lineage.pyname matching).sfs-side pieces.study_report.py/docs/research/doom-port-study.mddo not include this table yet.Remaining slices
Other metric families; plots; lineage-based subsystem assignment; sfs-side pieces; wiring into
study_report.py.Evidence
othershare, skips, baseline required, CLI outputs);test_doom_distribution.pyand the tree-wide guards pass (165 tests).pr_gates.py --fast: 8/8 after regeneratingdocs_read_by_tests.txt(generated). Ruff 0.17.1 (pinned) used; mypy 2.4.0.--ratchets(no engine, golden or ledger input changed; tooling only).🤖 Generated with Claude Code