feat(tools): digest the graphics track of a trace summary #18949

Merged
Ethan-Hainline merged 1 commit from upstream-pr/18949 into main 2026-11-14 21:16:55 +00:00
Ethan-Hainline commented 2026-11-12 15:30:03 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Ethan-Hainline on 2026-11-12T15:30:03Z.


What

tools/trace_digest.py now reads the graphics_track object that #18948 adds to aps5-summary.jsonl:

  • validates it as a map of names to non-negative integers, like owned_draw_counts (an older summary without the field stays valid);
  • carries each interval's map into digest_intervals;
  • renders a compact table in the interval digest: passes begun, continued, closed, the busiest close reason, recorded barriers, merged barriers, copy commands and copy MiB. The full per-class map stays available in --json.

No output changes for summaries without the field besides the absence of the new table.

Tested

  • python -m unittest tools.tests.test_trace_digest: 111 tests pass (2 skipped), including the new test_graphics_track_interval_counts_are_preserved, which checks cross-thread sums render as | 1 | 12 | 120 | 12 | raw | 240 | 60 | 4 | 2.0 | and a missing map renders -.
  • python tools/check_conventions.py --base upstream/main passes.

The field itself comes from #18948; this tool change is tolerant of summaries that do not have it, so the two can land in either order.

Checklist

  • Based on current main; one topic per PR
  • Depends on: #18948 (reads the field it adds; optional for older summaries)
  • Fixes: none
  • GPUs tested: n/a
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5280224673 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18949). Originally posted by [Ethan-Hainline](https://github.com/Ethan-Hainline) on 2026-11-12T15:30:03Z. --- ### What `tools/trace_digest.py` now reads the `graphics_track` object that #18948 adds to `aps5-summary.jsonl`: - validates it as a map of names to non-negative integers, like `owned_draw_counts` (an older summary without the field stays valid); - carries each interval's map into `digest_intervals`; - renders a compact table in the interval digest: passes begun, continued, closed, the busiest close reason, recorded barriers, merged barriers, copy commands and copy MiB. The full per-class map stays available in `--json`. No output changes for summaries without the field besides the absence of the new table. ### Tested - `python -m unittest tools.tests.test_trace_digest`: **111 tests pass** (2 skipped), including the new `test_graphics_track_interval_counts_are_preserved`, which checks cross-thread sums render as `| 1 | 12 | 120 | 12 | raw | 240 | 60 | 4 | 2.0 |` and a missing map renders `-`. - `python tools/check_conventions.py --base upstream/main` passes. The field itself comes from #18948; this tool change is tolerant of summaries that do not have it, so the two can land in either order. ### Checklist - [x] Based on current `main`; one topic per PR - [x] Depends on: #18948 (reads the field it adds; optional for older summaries) - [x] Fixes: none - [x] GPUs tested: n/a - [x] AI-assisted: yes
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!18949
No description provided.