tools: correlate ExecuteIndirect census with CPU A/B phases #3500
No reviewers
No assignees
Labels
No labels
bug
dependencies
documentation
enhancement
missing claim
needs rebase
needs-triage
question
ready-for-agent
submodules
No project
No milestone
Dependencies
No dependencies set
Notifications
3 participants
Due date
No due date set.
Reference
leonida/mandy!3500
Loading…
Reference in a new issue
No description provided.
Delete branch "kaoru-maki/mandy:codex/execute-indirect-ab-report"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Pull request successfully merged and closed
Claimed in the coordination issue as: TOOLS-INDIRECT-CENSUS-CPU-AB
What and why
Add a standard-library analyzer for a capture directory or ZIP containing
frames.txtand the runtime log. It uses the existing ExecuteIndirect census and CPU phase records. Census #3481 · CPU phases #3486 · Output fix #3488Example with generated inputs
I combined the
ExecuteIndirectcensus with archived Present boundaries and CPU A/B phases in an offline validator. The generated census input produced two verified 300-Present blocks and one bounded join. The first block contains 299 measured intervals between Presents. A missing Present, missing census boundary, stale tally, or inconsistent subtotal leaves the affected block without a join. The report rejects a diagnostic row with an unplaceable timestamp because it can change which boundaries are complete.MissingPartnerwith the delta omittedIncompletePartnerwith the delta omittedClippedByMeasurementWindowThe first Windows validation passed 22 analyzer tests and the seven upstream
ab_cpu.pytests passed. The offline checks add validation against host Present timestamps and measurement-window boundaries. Measuring GPU clamp-pass cost would require GPU timestamps. Census #3481 · CPU phases #3486 · Output fix #3488Tested
The published diff passed all 27 synthetic analyzer tests and the clean-room scan on Windows. The source diff checksum matches the published commit. On macOS with Python 3.12, all 27 analyzer tests, seven existing CPU A/B tests, three line-ending checks, and the repository clean-room scan also passed. All inputs were generated.
The added review regressions reject impossible phase summaries, keep the missing-boundary count unknown for a trimmed trace, and handle unreadable compressed archives without overwriting the existing report or exposing absolute paths. The corresponding cases failed before the fixes.
The original Windows validation passed 22 analyzer tests, seven CPU A/B tests, 40 gate tests, 59 documentation tests, and three line-ending tests. The shared path test for NTFS case sensitivity also failed on that environment's unmodified main. The analyzer's own output-alias regression passed.
Reports are intended for local correlation. The public examples above use generated times, labels, and counters.
GPUs tested: n/a (offline Python analysis).
AI-assisted: OpenAI Codex (GPT-6). Independent read-only review by GPT-6.2 Sol.
Checklist
Independent local verification of this change (I changed no code).
9fe33d81, merge base0036195a. The new tests are absent on the base:git grep -F test_confirms_two_blocks_and_one_bounded_join 0036195a -- tests/test_indirect_census.py-> exit 1 (same for the other new cases).python -I -m unittest discover -s tests -p test_indirect_census.py-> Ran 27 tests, OK (3.8 s). Synthetic census traces only; no game log and no device involved.git diff --check 0036195a 9fe33d81-> clean.python -I scripts/check_no_game_data.py scripts/indirect_census.py tests/test_indirect_census.py docs/measuring_fps.md-> clean.GPUs tested: none (pure Python trace parsing on synthetic inputs). Driver: n/a. No game data, assets or extracted shaders were used or attached.
AI-assisted: yes, Hy4 flash (verification only). No approval implied; this is a local test report.
Merged by Moon's agent on Moon's written authorization (two maintainers). Checked before merging: head merged with main and
python -m pytest tests/test_indirect_census.py(27 passed) on Windows 11,scripts/check_no_game_data.pyclean on the changed files, and an ACCEPT from a separate reviewer agent that did not write the code. No GPU or game run needed: offline tool only.