feat(tools): trace_digest lists the largest GPU batches with the CPU slices that recorded them #5047
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/5047"
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 parl0v on 2026-10-13T09:35:42Z.
What
tools/trace_digest.pygains a Largest GPU batches section, built on the batch ids of #5046. For the longestbatchslices of the GPU track it lists the batch's GPU ranges (command classes, withAPS5_PROFILE_GPU) and the CPU slices that recorded it (same batch id, any CPU thread, inclusive ms).--jsoncarries the same data aslargest_gpu_batches. Traces without batch ids are digested as before, without the section.Tested
tools/tests/test_trace_digest.py: 10 tests pass, includingtest_largest_gpu_batches_with_their_recording(order by GPU time, ranges, recording slices, present) andtest_no_batch_section_without_batch_ids.Driver.Packet.dispatchon queue worker 0x0.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 adriadam10 on 2026-10-14T12:11:09Z.
#5046 is already on
main(rebased), so I dropped its commit from this branch and rebased the rest: what is left istools/trace_digest.pyand its test.test_trace_digest.pypasses (17 tests) and the new case fails without the change (KeyError: 'largest_gpu_batches'); the no-batch-ids case keeps the old output. Merging once the full Build is green.