feat(tools): compare the graphics track between two summaries #18955
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/18955"
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 Ethan-Hainline on 2026-11-12T16:05:12Z.
What
tools/performance_compare.pynow compares thegraphics_trackobject that #18948 adds toaps5-summary.jsonl, so an A/B run can show whether a change moved the draw-path overhead in the direction it claims.graphics_trackas a map of names to non-negative integers (summaries without it stay valid).Graphics track (per present)table; a capture without the track showsn/aand its change is unavailable, and a note says a missing track is unknown, not zero.When neither capture has a track, no table or note is added; the JSON output still carries a
graphics_trackobject with null rates.Tested
python -m unittest tools.tests.test_performance_compare: 40 tests pass, including:2.000to3.000passes,1.0to0.5copy MiB);python tools/check_conventions.py --base upstream/mainpasses.Depends on #18948 for the field itself; the
n/apath keeps this safe to land in either order.Checklist
main; one topic per PRImported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-12T16:11:06Z.
Review: COMMENTED
Reviewed the graphics track comparison — no blocking findings
Nothing blocks this; the points below are optional.
The head
4f5e185afdadds the graphics-track table totools/performance_compare.pyand its tests. The per-present arithmetic matches the test fixture, and I found no blocking defect.What I ran
4f5e185afdCommands
The first
catreturned lines 1–200 only (the reader's per-call limit); lines 200–280 came from the second call.Results
tools/performance_compare.py, lines 1–280presentsis 4)tools/check_conventions.pyFindings
Blocking
None.
Non-blocking
tools/performance_compare.py:190adds a note to every comparison, andtools/performance_compare.py:210adds agraphics_trackkey to the JSON output, even when neither capture has a track. The description says "No effect on comparisons of older summaries beyond the new table being absent." That is not quite right: older summaries now get an extra note bullet and, in JSON, agraphics_trackobject with null values. Either the description should say so, or the note should be shown only when a track is present.tools/tests/test_performance_compare.py:614andtools/tests/test_performance_compare.py:616assert onlyrender_passesandcopy_mib. The barrier, merged-barrier, copy and continued-draw sums (tools/performance_compare.py:148,tools/performance_compare.py:150,tools/performance_compare.py:151,tools/performance_compare.py:152) have no assertion. The prefix match that keepsGraphics.Barrier.from countingGraphics.BarrierMerged.is untested too. The fixture already has both names, so a few more assertions would cover it. Forbarriersthe expected values are 20.000 and 30.000 per present.Sources
Not verified
tools/check_conventions.pyare author-reported. I did not run them.Graphics.RenderPasswas found as a literal at head. I searched forBarrierMergedand found it only in this PR's files. I did not check that the producer emitsGraphics.Barrier.*,Graphics.Copy,Graphics.Copy.bytesorGraphics.RenderPass.Continued.tools/tests/test_performance_compare.pywas read only in its added hunk (fromdiff.patch) and in the head fixture at lines 17–40. The rest of the file was not read.To get this to a good state
Nothing is required. The non-blocking points above are optional.