feat(tools): split the periodic reports of an APS5_AB run by phase #8161
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/8161"
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?
Imported from boykopovar/AnyPS5. Originally posted by Celegans12 on 2026-10-20T00:57:06Z.
What
Stacked on #8160; please review the last commit only.
An
APS5_ABrun interleaves phases A and B, and each periodic report on stderr covers the time since the previous report of its kind, so the reports have to be sorted by phase before A and B can be compared.tools/ab_split.py <log>does that.[ab]lines and counts a[present],[gputime],[draw] pipelinedor[syncwait]report for a phase only when the previous report of the same kind came after the phase's settled line, so its whole span lies inside one setting.--programkey and--class), committer time per commit, room wait per draw, drain time and unlocked hook waits per report.--jsonprints the phases and metrics as JSON.The A/B numbers in the Tested section of #8160 are this tool's output.
Tested
main4b1a9a3b2f: the newab_splittest (7 cases) passes in ctest (--repeat until-fail:3). It fails onmain, where the tool doesn't exist, and with the first report after a settled line counted (its span includes the settle) 3 of the 7 cases fail.main:ab_splitpasses with #8160's tests.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)Imported from boykopovar/AnyPS5. Originally posted by THEMANnt on 2026-10-25T12:42:59Z.
Review: APPROVED
Reviewed head
c3f43a2a308eb85ef27721984c364eb0a56c7755. No actionable findings in this focused A/B tooling and runtime-switch review.The scheduler validates its runtime-switch allowlist and timing inputs, starts phase A from captured environment settings, and toggles only the listed switch for phase B. Flip integration takes the GPU mutex while applying a step; Recorder reads the atomic switch alongside the existing barrier-merging constraints. The Python reader excludes periodic-report windows spanning a phase/settling boundary and reports per-phase measurements plus neighboring-A comparisons.
Validation: Windows, MinGW GCC 15.2.0/Python 3.11.9: compiled the exact new RuntimeSwitches.cpp with its exact test source; normal and invalid-switch refusal modes both pass. All seven Python ab_split tests pass. Both changed integration units, Recorder.cpp and PacketExecution.cpp, pass syntax checks using pinned project headers with existing third-party/generated dependency includes. Conventions and whitespace pass; the new native/Python CMake registrations were inspected. This older registration CLI does not support --scripts, so no registration-command pass is claimed. Baseline lacks the new Python module; its grafted-test import failure is not a behavioral regression control. Hosted relinker/ASan and policy checks pass; product jobs are skipped.
Scope: Native scheduling/switch tests, integration syntax/source review and synthetic log analysis. No GPU/title run, full driver link or performance improvement was independently measured.