feat(agc): report every trace phase total behind APS5_TRACE_ALL_PHASES #18243

Merged
Logan1h merged 2 commits from upstream-pr/18243 into main 2026-11-21 09:21:27 +00:00
Logan1h commented 2026-11-10 23:32:33 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by Logan1h on 2026-11-10T23:32:33Z.


What

The trace summary names only the eight largest scopes and stages (top_phases_ms_per_frame). Every other stage is folded away, so a stage that dominates one part of a frame but is small next to a larger one cannot be read from the summary at all, and the summary's own documentation says a missing stage does not establish that it did not run or cost nothing.

APS5_TRACE_ALL_PHASES=1 adds a phase_totals object to every summary line (windowed APS5_TRACE_FRAMES/APS5_TRACE_SECONDS, and each APS5_TRACE_SUMMARY_EVERY line). It carries every recorded scope and stage with count, sum_ms and ms_per_present, merged across threads the same way the top list is, so short stages and per-thread call counts stay visible regardless of the eight-entry cut. This includes the recorded Driver.WorkerWait scope in phase_totals while keeping it out of top_phases_ms_per_frame.

The counts come from the per-thread totals table the trace already keeps; no new timing is recorded and no GPU path changes. Without the variable the summary line is byte-identical to today's, which the test asserts.

docs/dev/ENVIRONMENT.md gains the variable and docs/dev/BUILD.md gains the field in the summary description.

Integration status: #15952 is merged and is an ancestor of this head. A current pairwise git merge-tree --write-tree between this head 36cb6ddb4ec and #18029 d161c08eea2 exits 0 with no conflicts (a680c7b862f7c74ec981ba64e3fd1b0cc885943a), so the earlier schema/order blocker is resolved and no dependency remains.

Tested

Current head 36cb6ddb4ecea83cd394a9f2f2108f115ab6bdbc, rebased onto main 2b718a22fe1c8b234260a720c2fcf247ad3668ac. Before push origin/main advanced to d50640e26408445609a1c2e5ebfb8ed962376909; no upstream changes since the tested base intersect this PR, and git merge-tree --write-tree origin/main HEAD is clean (12830d089e6f7e57be03fc3f176a39dd73223010).

Windows 11, Ryzen 5 7500F, GeForce RTX 4070 SUPER, WinLibs GCC 15.2.0 Release:

  • Rebased libSceAgcDriver, agc_performance_trace_tests, agc_packet_info_tests, agc_driver_depth_plane_sampling_tests, agc_driver_image_converted_unorm_tests and agc_driver_pm4_tests build successfully; the build log reaches 772/772 with exit 0.
  • agc_performance_trace passes with ANYPS5_REQUIRE_VULKAN=1, ANYPS5_NO_SHADER_CACHE=1 and VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation, including SummaryAllPhaseTotals: the compact summary exports neither phase_totals nor a stage outside the top eight; with the switch on, a 5 us stage called twice on one thread and a 7 us stage called three times on another merge into {"count":5,"sum_ms":0.012,"ms_per_present":0.006}, and Driver.WorkerWait (3 ms x 4 on the first thread, 2 ms x 1 on the second) merges into {"count":5,"sum_ms":5.000,"ms_per_present":2.500} while staying out of the top phases.
  • agc_driver_depth_plane_sampling, agc_driver_depth_plane_sampling_evicting, agc_driver_image_converted_unorm, agc_driver_pm4 and agc_performance_trace pass 5 of 5 with the same validation environment, with zero VUID- or layer-missing lines.
  • Paired tools/vulkan_validation_gate.py, baseline 2b718a22fe1 vs this head, APS5_TRACE_ALL_PHASES=1, agc_driver_depth_plane_sampling, two iterations per side: status=complete, problems=[], new_diagnostics={}; every run inserted VK_LAYER_KHRONOS_validation.
  • The old CI failure is covered by current main: upstream 58e8e208bab test(libSceAgc): probe unwritable outputs with an address that cannot be mapped replaces the mappable 0x10000 fixture with 0x10. On this rebased head agc_packet_info_tests --repeat until-fail:100 passes 100 of 100. No PacketInfo production or test change is carried by this PR.
  • git diff --check origin/main...HEAD, tools/check_conventions.py --base origin/main, tools/check_test_registration.py build and tools/check_test_registration.py --scripts pass; registration reports 3197 test executables and 0 built but not run.
  • tools/pr_overlap.py --base main --branch feat/agc-trace-phase-totals --jobs 8 exits 2 for documentation-only overlaps and older fail-closed branches. Depends on: none remains unchanged.
  • On-title schema cross-check by adam25136 (measurement): GTA V PS5, RTX 5080, main c348559ad3 plus a local field equivalent to this PR's Driver.Draw count — not this PR head. The count was steady at about 1,343 draws per present while the trace events showed less than a third of them; APS5_PIPELINE_STATS agreed within 0.3% over 210 s. The measured 34.9 ms per frame therefore reads as about 26.0 us per draw. This validates the schema's usefulness and interpretation, not the implementation of this head.
  • No title was run on this PR head: it formats the summary only and does not touch a GPU path. Fresh GitHub CI is pending on 36cb6ddb4ec; green CI is not claimed from the local results.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.14, Windows 11 - focused AGC tests only, on this head; the change itself has no GPU path
  • AI-assisted: yes
<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5250809216 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18243). Originally posted by [Logan1h](https://github.com/Logan1h) on 2026-11-10T23:32:33Z. --- ### What The trace summary names only the eight largest scopes and stages (`top_phases_ms_per_frame`). Every other stage is folded away, so a stage that dominates one part of a frame but is small next to a larger one cannot be read from the summary at all, and the summary's own documentation says a missing stage does not establish that it did not run or cost nothing. `APS5_TRACE_ALL_PHASES=1` adds a `phase_totals` object to every summary line (windowed `APS5_TRACE_FRAMES`/`APS5_TRACE_SECONDS`, and each `APS5_TRACE_SUMMARY_EVERY` line). It carries every recorded scope and stage with `count`, `sum_ms` and `ms_per_present`, merged across threads the same way the top list is, so short stages and per-thread call counts stay visible regardless of the eight-entry cut. This includes the recorded `Driver.WorkerWait` scope in `phase_totals` while keeping it out of `top_phases_ms_per_frame`. The counts come from the per-thread totals table the trace already keeps; no new timing is recorded and no GPU path changes. Without the variable the summary line is byte-identical to today's, which the test asserts. `docs/dev/ENVIRONMENT.md` gains the variable and `docs/dev/BUILD.md` gains the field in the summary description. Integration status: #15952 is merged and is an ancestor of this head. A current pairwise `git merge-tree --write-tree` between this head `36cb6ddb4ec` and #18029 `d161c08eea2` exits 0 with no conflicts (`a680c7b862f7c74ec981ba64e3fd1b0cc885943a`), so the earlier schema/order blocker is resolved and no dependency remains. ### Tested Current head `36cb6ddb4ecea83cd394a9f2f2108f115ab6bdbc`, rebased onto `main` `2b718a22fe1c8b234260a720c2fcf247ad3668ac`. Before push `origin/main` advanced to `d50640e26408445609a1c2e5ebfb8ed962376909`; no upstream changes since the tested base intersect this PR, and `git merge-tree --write-tree origin/main HEAD` is clean (`12830d089e6f7e57be03fc3f176a39dd73223010`). Windows 11, Ryzen 5 7500F, GeForce RTX 4070 SUPER, WinLibs GCC 15.2.0 Release: - Rebased `libSceAgcDriver`, `agc_performance_trace_tests`, `agc_packet_info_tests`, `agc_driver_depth_plane_sampling_tests`, `agc_driver_image_converted_unorm_tests` and `agc_driver_pm4_tests` build successfully; the build log reaches 772/772 with exit 0. - `agc_performance_trace` passes with `ANYPS5_REQUIRE_VULKAN=1`, `ANYPS5_NO_SHADER_CACHE=1` and `VK_INSTANCE_LAYERS=VK_LAYER_KHRONOS_validation`, including `SummaryAllPhaseTotals`: the compact summary exports neither `phase_totals` nor a stage outside the top eight; with the switch on, a 5 us stage called twice on one thread and a 7 us stage called three times on another merge into `{"count":5,"sum_ms":0.012,"ms_per_present":0.006}`, and `Driver.WorkerWait` (3 ms x 4 on the first thread, 2 ms x 1 on the second) merges into `{"count":5,"sum_ms":5.000,"ms_per_present":2.500}` while staying out of the top phases. - `agc_driver_depth_plane_sampling`, `agc_driver_depth_plane_sampling_evicting`, `agc_driver_image_converted_unorm`, `agc_driver_pm4` and `agc_performance_trace` pass 5 of 5 with the same validation environment, with zero `VUID-` or layer-missing lines. - Paired `tools/vulkan_validation_gate.py`, baseline `2b718a22fe1` vs this head, `APS5_TRACE_ALL_PHASES=1`, `agc_driver_depth_plane_sampling`, two iterations per side: `status=complete`, `problems=[]`, `new_diagnostics={}`; every run inserted `VK_LAYER_KHRONOS_validation`. - The old CI failure is covered by current `main`: upstream `58e8e208bab test(libSceAgc): probe unwritable outputs with an address that cannot be mapped` replaces the mappable `0x10000` fixture with `0x10`. On this rebased head `agc_packet_info_tests --repeat until-fail:100` passes 100 of 100. No PacketInfo production or test change is carried by this PR. - `git diff --check origin/main...HEAD`, `tools/check_conventions.py --base origin/main`, `tools/check_test_registration.py build` and `tools/check_test_registration.py --scripts` pass; registration reports 3197 test executables and 0 built but not run. - `tools/pr_overlap.py --base main --branch feat/agc-trace-phase-totals --jobs 8` exits 2 for documentation-only overlaps and older fail-closed branches. `Depends on: none` remains unchanged. - On-title schema cross-check by `adam25136` ([measurement](https://github.com/boykopovar/AnyPS5/pull/18243#issuecomment-6838407689)): GTA V PS5, RTX 5080, `main` `c348559ad3` plus a local field equivalent to this PR's `Driver.Draw` count — **not this PR head**. The count was steady at about 1,343 draws per present while the trace events showed less than a third of them; `APS5_PIPELINE_STATS` agreed within 0.3% over 210 s. The measured 34.9 ms per frame therefore reads as about 26.0 us per draw. This validates the schema's usefulness and interpretation, not the implementation of this head. - No title was run on this PR head: it formats the summary only and does not touch a GPU path. Fresh GitHub CI is pending on `36cb6ddb4ec`; green CI is not claimed from the local results. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: NVIDIA GeForce RTX 4070 SUPER, driver 621.14, Windows 11 - focused AGC tests only, on this head; the change itself has no GPU path - [x] AI-assisted: yes
MarcZX10 commented 2026-11-11 00:01:32 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-11T00:01:32Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

phase_totals claims to include every recorded scope, but the summary builder filters out the recorded Driver.WorkerWait scope before producing that field.

What I ran

Reviewed head 45b50d0c24bb7f7f01ca06548ad8e7e50934f062; the precheck and clean merge preview used current base bc94a8e423ea026aadbb29165fed1ad2db471154. I inspected all four changed files, the summary aggregation and the existing summary tests.

Environment: Linux 6.1, Python 3.11.2, GCC 12.2.0. I ran:

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18243 --output-dir /tmp/anyps5-pr-precheck-18243
gh pr checks 18243 -R boykopovar/AnyPS5

I did not build or run CTest locally. The author reports the focused tests and paired GPU validation-layer runs on a GeForce RTX 4070 SUPER; I did not reproduce those runs.

Results

Check Result Note
No-build precheck passed Applicable static checks passed.
Merge preview passed Clean against the stated base.
Test registration passed Existing CMake fragment registers agc_performance_trace.
Source review failed phase_totals omits Driver.WorkerWait.
Local build and CTest not run Not run in this no-build review.
Hosted CI snapshot not run Windows passed; seven jobs skipped; policy checks passed.
Precheck and hosted status details

Precheck output:

Head: 45b50d0c24bb7f7f01ca06548ad8e7e50934f062
Base used for checks: bc94a8e423ea026aadbb29165fed1ad2db471154
Head unchanged at completion: True
Base branch tip at completion: bc94a8e423ea026aadbb29165fed1ad2db471154
All conventions checks passed.

The precheck's git diff --check exited 0 with no output. The ABI audit was not applicable. The test-quality heuristic reported PerformanceTrace.cpp as possibly unregistered; I verified the existing agc_performance_trace_tests.cmake registers it. Build and build-dependent C++ tests were not run by the no-build precheck.

Hosted status command:

gh pr checks 18243 -R boykopovar/AnyPS5

Observed statuses: Windows passed; seven jobs skipped; intake, conventions, eligibility, labels, report and library-portability passed.

Negative control

I did not run a base-versus-change negative control. The new unit test checks aggregation across threads but does not exercise the recorded Driver.WorkerWait scope with APS5_TRACE_ALL_PHASES=1.

Findings

Blocking

  • Driver.WorkerWait is recorded as a PerformanceTimer scope, but the scope != WorkerWaitScope filter excludes it from phases. The new phase_totals iterates phases, so it also omits this scope despite documenting that it contains every recorded scope and stage. Keep the existing exclusion from top_phases_ms_per_frame if that behavior is intentional, but collect the all-phase totals separately so phase_totals includes the wait scope; add a test that asserts its count and durations. Alternatively, narrow the field's documentation and PR claim to name the exclusion explicitly.

Non-blocking

None.

Sources

Not verified

  • I did not build the project or run the local agc_performance_trace CTest.
  • The author-reported NVIDIA GPU runs were not independently reproduced; the Windows job was pending and seven hosted jobs were skipped.
  • PS5 gfx1013 console behavior was not measured.

To get this to a good state

Include Driver.WorkerWait in phase_totals without changing the existing top-eight behavior, and add a test for its count and duration (or document the exclusion consistently). I’ll rerun the precheck and inspect the focused test on the new head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5851438624 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18243#pullrequestreview-5851438624). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-11T00:01:32Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested `phase_totals` claims to include every recorded scope, but the summary builder filters out the recorded `Driver.WorkerWait` scope before producing that field. ## What I ran Reviewed head `45b50d0c24bb7f7f01ca06548ad8e7e50934f062`; the precheck and clean merge preview used current base `bc94a8e423ea026aadbb29165fed1ad2db471154`. I inspected all four changed files, the summary aggregation and the existing summary tests. Environment: Linux 6.1, Python 3.11.2, GCC 12.2.0. I ran: ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18243 --output-dir /tmp/anyps5-pr-precheck-18243 gh pr checks 18243 -R boykopovar/AnyPS5 ``` I did not build or run CTest locally. The author reports the focused tests and paired GPU validation-layer runs on a GeForce RTX 4070 SUPER; I did not reproduce those runs. ## Results | Check | Result | Note | |---|---|---| | No-build precheck | passed | Applicable static checks passed. | | Merge preview | passed | Clean against the stated base. | | Test registration | passed | Existing CMake fragment registers `agc_performance_trace`. | | Source review | failed | `phase_totals` omits `Driver.WorkerWait`. | | Local build and CTest | not run | Not run in this no-build review. | | Hosted CI snapshot | not run | Windows passed; seven jobs skipped; policy checks passed. | <details> <summary>Precheck and hosted status details</summary> Precheck output: ```text Head: 45b50d0c24bb7f7f01ca06548ad8e7e50934f062 Base used for checks: bc94a8e423ea026aadbb29165fed1ad2db471154 Head unchanged at completion: True Base branch tip at completion: bc94a8e423ea026aadbb29165fed1ad2db471154 All conventions checks passed. ``` The precheck's `git diff --check` exited 0 with no output. The ABI audit was not applicable. The test-quality heuristic reported `PerformanceTrace.cpp` as possibly unregistered; I verified the existing `agc_performance_trace_tests.cmake` registers it. Build and build-dependent C++ tests were not run by the no-build precheck. Hosted status command: ```sh gh pr checks 18243 -R boykopovar/AnyPS5 ``` Observed statuses: Windows passed; seven jobs skipped; intake, conventions, eligibility, labels, report and library-portability passed. </details> ## Negative control I did not run a base-versus-change negative control. The new unit test checks aggregation across threads but does not exercise the recorded `Driver.WorkerWait` scope with `APS5_TRACE_ALL_PHASES=1`. ## Findings ### Blocking - `Driver.WorkerWait` is recorded as a `PerformanceTimer` scope, but the `scope != WorkerWaitScope` filter excludes it from `phases`. The new `phase_totals` iterates `phases`, so it also omits this scope despite documenting that it contains every recorded scope and stage. Keep the existing exclusion from `top_phases_ms_per_frame` if that behavior is intentional, but collect the all-phase totals separately so `phase_totals` includes the wait scope; add a test that asserts its count and durations. Alternatively, narrow the field's documentation and PR claim to name the exclusion explicitly. ### Non-blocking None. ## Sources - [Summary aggregation filters `WorkerWait` before building `phase_totals`](https://github.com/boykopovar/AnyPS5/blob/45b50d0c24bb7f7f01ca06548ad8e7e50934f062/core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp#L709-L741) - [The trace records `Driver.WorkerWait`; `phase_totals` is documented as every recorded scope and stage](https://github.com/boykopovar/AnyPS5/blob/45b50d0c24bb7f7f01ca06548ad8e7e50934f062/docs/dev/BUILD.md#L300-L304) - [New test does not cover `Driver.WorkerWait` when all phase totals are enabled](https://github.com/boykopovar/AnyPS5/blob/45b50d0c24bb7f7f01ca06548ad8e7e50934f062/core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp#L330-L344) ## Not verified - I did not build the project or run the local `agc_performance_trace` CTest. - The author-reported NVIDIA GPU runs were not independently reproduced; the Windows job was pending and seven hosted jobs were skipped. - PS5 gfx1013 console behavior was not measured. ## To get this to a good state Include `Driver.WorkerWait` in `phase_totals` without changing the existing top-eight behavior, and add a test for its count and duration (or document the exclusion consistently). I’ll rerun the precheck and inspect the focused test on the new head.
MarcZX10 commented 2026-11-11 23:22:58 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-11T23:22:58Z.

Review: CHANGES_REQUESTED


Reviewed — changes requested

The missing Driver.WorkerWait totals are now covered, but the PR still needs an agreed integration order with two open PRs that overlap this summary output.

What I ran

Reviewed head 6b7bbec930e4017842c3047ba1706a7fc2912ed3 against current main 3a0a54bbd85f2545103be14d046fef44cd7c5905; the merged preview is clean. Environment: Linux 6.1, Debian glibc 2.36, Python 3.11.2, GCC 12.2. The Windows hosted check also passed on this exact head. The author-reported focused Vulkan runs are identified separately below; I did not run them.

python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18243 --output-dir /tmp/anyps5-pr-precheck-18243-current
git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 3a0a54bbd85f2545103be14d046fef44cd7c5905
git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 cd849a832356b3f321def909b1531c1b1a497237
git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 dee8d794b153613938e00d7a4b8b2b0cc4426cc8
gh pr checks 18243 --repo boykopovar/AnyPS5

Results

Check Result Note
No-build precheck passed Diff, conventions, stack and test-quality checks passed; ABI audit was not applicable.
Test registration passed The test is registered in the AGC CMake fragment.
Current-main merge preview passed Clean on the current base.
Hosted Windows check passed Exact reviewed head.
Focused AGC/Vulkan tests passed Author-reported for this head; not run locally.
Additional full CTest reports not run Author reports the failures also occur on main; not reproduced here.
Pairwise integration with #15952 failed Conflicts in the AGC trace test and build documentation.
Pairwise integration with #18029 failed Conflicts in the AGC trace summary implementation.
Local build and CTest not run No local build was run.
Precheck and merge output

The full precheck check table is reproduced here from the report:

Check Status Why / command
build_and_compile not_run Builds are intentionally excluded from this fast, no-build check pass.
diff_check passed Command ran; see raw output below. Command: git diff --check 3a0a54bbd85f2545103be14d046fef44cd7c5905...6b7bbec930e4017842c3047ba1706a7fc2912ed3
conventions_and_pr_template passed Command ran; see raw output below. Command: /usr/bin/python3 tools/check_conventions.py --base 3a0a54bbd85f2545103be14d046fef44cd7c5905 --head 6b7bbec930e4017842c3047ba1706a7fc2912ed3 --title feat(agc): report every trace phase total behind APS5_TRACE_ALL_PHASES --body /tmp/anyps5-pr-precheck-18243-current/pr-body.md
changed_export_abi_audit passed Command ran; see raw output below. Command: /usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 3a0a54bbd85f2545103be14d046fef44cd7c5905 --head 6b7bbec930e4017842c3047ba1706a7fc2912ed3 --json
python_syntax not_applicable No changed Python implementation files.
related_python_unit_tests not_applicable No changed Python tool module has a related tools/tests/test_.py suite.
python_test_registration not_applicable No changed Python test files need registration.
live_dependency_and_mergeability_check passed Command ran; see raw output below. Command: /usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 18243 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-18243-current/stack
build_dependent_cpp_tests not_run Changed C/C++ source or test files need exact-head binaries; this fast pass does not build.
test_quality_heuristics passed Command ran; see raw output below. Command: /usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18243-current/head-6b7bbec930e4-9208d4c3 --json core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp docs/dev/BUILD.md docs/dev/ENVIRONMENT.md
negative_controls not_applicable No changed tools/ Python test module is eligible for a base-source negative control.

git merge-tree returned exit 0 for the current-main preview. It returned exit 1 for each pairwise preview:

#15952: CONFLICT (content): core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp
#15952: CONFLICT (content): docs/dev/BUILD.md
#18029: CONFLICT (content): core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp

GitHub's Windows check for this head passed. Seven product jobs were skipped by CI path policy. The author reports that the focused AGC set passed on main and this head with Vulkan validation enabled and no VUID or sync-hazard lines; that evidence was not independently reproduced here.

Negative control

No mutation negative control was run. The new regression directly checks that Driver.WorkerWait is included in the opt-in totals while remaining excluded from the compact summary and top-phase list.

Findings

Blocking

  • Agree and declare the integration order. Open #15952 adds a competing all-phase summary field (phase_totals_ms); #18243 adds phase_totals with counts and per-present values. Their current heads conflict in the trace test and build documentation. Open #18029 adds encoder counters in the same trace-summary implementation, and its current head conflicts with this one in PerformanceTrace.hpp. The PR checklist currently says Depends on: none, contrary to the repository's overlap rule. Please coordinate with both authors, agree which change lands first or consolidate the overlapping summary work, then update the dependency checklist and resolve the resulting conflicts.

Non-blocking

No separate defect was found in the changed implementation or regression test. The earlier omission of Driver.WorkerWait is fixed by collecting its totals separately from the top-phase map.

Sources

Not verified

  • I did not build locally or run CTest, and did not independently reproduce the reported focused Vulkan runs.
  • No title or physical console was tested.
  • The pairwise merge previews expose conflicts but do not decide which overlapping implementation should be retained.

To get this to a good state

Coordinate the all-phase schema and landing order with #15952 and #18029, update Depends on, and push the integrated head. I will rerun the no-build precheck and current-base/pairwise merge checks, then review the new exact head.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5866671479 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18243#pullrequestreview-5866671479). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-11T23:22:58Z. **Review:** CHANGES_REQUESTED --- # Reviewed — changes requested The missing `Driver.WorkerWait` totals are now covered, but the PR still needs an agreed integration order with two open PRs that overlap this summary output. ## What I ran Reviewed head `6b7bbec930e4017842c3047ba1706a7fc2912ed3` against current `main` `3a0a54bbd85f2545103be14d046fef44cd7c5905`; the merged preview is clean. Environment: Linux 6.1, Debian glibc 2.36, Python 3.11.2, GCC 12.2. The Windows hosted check also passed on this exact head. The author-reported focused Vulkan runs are identified separately below; I did not run them. ```sh python3 tools/pr_precheck.py --repo boykopovar/AnyPS5 --pr 18243 --output-dir /tmp/anyps5-pr-precheck-18243-current git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 3a0a54bbd85f2545103be14d046fef44cd7c5905 git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 cd849a832356b3f321def909b1531c1b1a497237 git merge-tree --write-tree 6b7bbec930e4017842c3047ba1706a7fc2912ed3 dee8d794b153613938e00d7a4b8b2b0cc4426cc8 gh pr checks 18243 --repo boykopovar/AnyPS5 ``` ## Results | Check | Result | Note | |---|---|---| | No-build precheck | passed | Diff, conventions, stack and test-quality checks passed; ABI audit was not applicable. | | Test registration | passed | The test is registered in the AGC CMake fragment. | | Current-main merge preview | passed | Clean on the current base. | | Hosted Windows check | passed | Exact reviewed head. | | Focused AGC/Vulkan tests | passed | Author-reported for this head; not run locally. | | Additional full CTest reports | not run | Author reports the failures also occur on `main`; not reproduced here. | | Pairwise integration with #15952 | failed | Conflicts in the AGC trace test and build documentation. | | Pairwise integration with #18029 | failed | Conflicts in the AGC trace summary implementation. | | Local build and CTest | not run | No local build was run. | <details> <summary>Precheck and merge output</summary> The full precheck check table is reproduced here from the report: | Check | Status | Why / command | |---|---|---| | build_and_compile | not_run | Builds are intentionally excluded from this fast, no-build check pass. | | diff_check | passed | Command ran; see raw output below. Command: `git diff --check 3a0a54bbd85f2545103be14d046fef44cd7c5905...6b7bbec930e4017842c3047ba1706a7fc2912ed3` | | conventions_and_pr_template | passed | Command ran; see raw output below. Command: `/usr/bin/python3 tools/check_conventions.py --base 3a0a54bbd85f2545103be14d046fef44cd7c5905 --head 6b7bbec930e4017842c3047ba1706a7fc2912ed3 --title feat(agc): report every trace phase total behind APS5_TRACE_ALL_PHASES --body /tmp/anyps5-pr-precheck-18243-current/pr-body.md` | | changed_export_abi_audit | passed | Command ran; see raw output below. Command: `/usr/bin/python3 /marc/AnyPS5/tools/pr_abi_audit.py --base 3a0a54bbd85f2545103be14d046fef44cd7c5905 --head 6b7bbec930e4017842c3047ba1706a7fc2912ed3 --json` | | python_syntax | not_applicable | No changed Python implementation files. | | related_python_unit_tests | not_applicable | No changed Python tool module has a related tools/tests/test_<module>.py suite. | | python_test_registration | not_applicable | No changed Python test files need registration. | | live_dependency_and_mergeability_check | passed | Command ran; see raw output below. Command: `/usr/bin/python3 /marc/AnyPS5/tools/pr_stack_check.py 18243 --repo boykopovar/AnyPS5 --output-dir /tmp/anyps5-pr-precheck-18243-current/stack` | | build_dependent_cpp_tests | not_run | Changed C/C++ source or test files need exact-head binaries; this fast pass does not build. | | test_quality_heuristics | passed | Command ran; see raw output below. Command: `/usr/bin/python3 /marc/AnyPS5/tools/pr_test_quality.py --root /tmp/anyps5-pr-precheck-18243-current/head-6b7bbec930e4-9208d4c3 --json core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp docs/dev/BUILD.md docs/dev/ENVIRONMENT.md` | | negative_controls | not_applicable | No changed tools/ Python test module is eligible for a base-source negative control. | `git merge-tree` returned exit 0 for the current-main preview. It returned exit 1 for each pairwise preview: ```text #15952: CONFLICT (content): core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp #15952: CONFLICT (content): docs/dev/BUILD.md #18029: CONFLICT (content): core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp ``` GitHub's Windows check for this head passed. Seven product jobs were skipped by CI path policy. The author reports that the focused AGC set passed on `main` and this head with Vulkan validation enabled and no VUID or sync-hazard lines; that evidence was not independently reproduced here. </details> ## Negative control No mutation negative control was run. The new regression directly checks that `Driver.WorkerWait` is included in the opt-in totals while remaining excluded from the compact summary and top-phase list. ## Findings ### Blocking - **Agree and declare the integration order.** Open #15952 adds a competing all-phase summary field (`phase_totals_ms`); #18243 adds `phase_totals` with counts and per-present values. Their current heads conflict in the trace test and build documentation. Open #18029 adds encoder counters in the same trace-summary implementation, and its current head conflicts with this one in `PerformanceTrace.hpp`. The PR checklist currently says `Depends on: none`, contrary to the repository's overlap rule. Please coordinate with both authors, agree which change lands first or consolidate the overlapping summary work, then update the dependency checklist and resolve the resulting conflicts. ### Non-blocking No separate defect was found in the changed implementation or regression test. The earlier omission of `Driver.WorkerWait` is fixed by collecting its totals separately from the top-phase map. ## Sources - [This head's phase aggregation](https://github.com/boykopovar/AnyPS5/blob/6b7bbec930e4017842c3047ba1706a7fc2912ed3/core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp#L685-L759) - [This head's regression test](https://github.com/boykopovar/AnyPS5/blob/6b7bbec930e4017842c3047ba1706a7fc2912ed3/core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp#L330-L349) - [#15952's all-phase summary field](https://github.com/boykopovar/AnyPS5/blob/cd849a832356b3f321def909b1531c1b1a497237/core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp#L670-L677) - [#18029's trace-summary changes](https://github.com/boykopovar/AnyPS5/blob/dee8d794b153613938e00d7a4b8b2b0cc4426cc8/core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp#L688-L750) - [Repository rule for agreeing and declaring overlap order](https://github.com/boykopovar/AnyPS5/blob/3a0a54bbd85f2545103be14d046fef44cd7c5905/CONTRIBUTING.md#L71) ## Not verified - I did not build locally or run CTest, and did not independently reproduce the reported focused Vulkan runs. - No title or physical console was tested. - The pairwise merge previews expose conflicts but do not decide which overlapping implementation should be retained. ## To get this to a good state Coordinate the all-phase schema and landing order with #15952 and #18029, update `Depends on`, and push the integrated head. I will rerun the no-build precheck and current-base/pairwise merge checks, then review the new exact head.
MarcZX10 commented 2026-11-14 16:38:20 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-14T16:38:20Z.

Review: COMMENTED


Reviewed — no blocking findings

The changed summary formatting and documentation were reviewed at head 21e519248bfb41b3556836724198cc84374b04d5; no blocking defect was verified, and automated checks were not run.

What I ran

Read the prepared description, commit list, diff, manifest, and all four changed files’ added lines. Inspected the related summary-formatting helpers. No test or build command was run.

Results

Check Result Note
Changed code review passed Added lines and related helpers read
Tests and build not run No execution environment available

Findings

Blocking

None.

Non-blocking

None.

Not verified

The author reports passing tests, but I did not run them. Full file text beyond the relevant changed lines was not read. Files read: PerformanceTrace.hpp, PerformanceTrace.cpp, docs/dev/BUILD.md, and docs/dev/ENVIRONMENT.md. The manifest lists these same four files as reviewed; all added lines were read.

To get this to a good state

Nothing is required. Optional: run agc_performance_trace on this head to confirm the reported result.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5905877144 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18243#pullrequestreview-5905877144). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-14T16:38:20Z. **Review:** COMMENTED --- # Reviewed — no blocking findings The changed summary formatting and documentation were reviewed at head `21e519248bfb41b3556836724198cc84374b04d5`; no blocking defect was verified, and automated checks were not run. ## What I ran Read the prepared description, commit list, diff, manifest, and all four changed files’ added lines. Inspected the related summary-formatting helpers. No test or build command was run. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Added lines and related helpers read | | Tests and build | not run | No execution environment available | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified The author reports passing tests, but I did not run them. Full file text beyond the relevant changed lines was not read. Files read: `PerformanceTrace.hpp`, `PerformanceTrace.cpp`, `docs/dev/BUILD.md`, and `docs/dev/ENVIRONMENT.md`. The manifest lists these same four files as reviewed; all added lines were read. ## To get this to a good state Nothing is required. Optional: run `agc_performance_trace` on this head to confirm the reported result.
MarcZX10 commented 2026-11-20 04:50:06 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-20T04:50:06Z.

Review: APPROVED


Reviewed — looks good

The change adds opt-in per-phase call counts and duration totals to trace summaries, including the worker wait scope; the reviewed implementation and tests support the stated behavior.

What I ran

Reviewed head 36cb6ddb4ecea83cd394a9f2f2108f115ab6bdbc. No commands or tests were run; the author-reported test results are not independent runs.

Results

Check Result Note
Changed code review passed Four changed files read
Tests in this review not run Author reports focused tests passed
Excluded-file review not applicable No excluded files listed in the manifest

Findings

Blocking

None.

Non-blocking

None.

Not verified

No runtime behavior, test output, build, CI result, merge preview, or title behavior was independently verified. The description reports these checks, but they were not run in this review.

To get this to a good state

Nothing is required.

Files read: core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp, core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp, docs/dev/BUILD.md, and docs/dev/ENVIRONMENT.md. Files reviewed in the manifest: all four; no exclusions were listed.

<!-- greyfinch-sync:boykopovar/AnyPS5:review:5987652052 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/18243#pullrequestreview-5987652052). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-11-20T04:50:06Z. **Review:** APPROVED --- # Reviewed — looks good The change adds opt-in per-phase call counts and duration totals to trace summaries, including the worker wait scope; the reviewed implementation and tests support the stated behavior. ## What I ran Reviewed head `36cb6ddb4ecea83cd394a9f2f2108f115ab6bdbc`. No commands or tests were run; the author-reported test results are not independent runs. ## Results | Check | Result | Note | |---|---|---| | Changed code review | passed | Four changed files read | | Tests in this review | not run | Author reports focused tests passed | | Excluded-file review | not applicable | No excluded files listed in the manifest | ## Findings ### Blocking None. ### Non-blocking None. ## Not verified No runtime behavior, test output, build, CI result, merge preview, or title behavior was independently verified. The description reports these checks, but they were not run in this review. ## To get this to a good state Nothing is required. Files read: `core/libs/prx/libSceAgcDriver/Execution/include/PerformanceTrace.hpp`, `core/libs/prx/libSceAgcDriver/tests/PerformanceTrace.cpp`, `docs/dev/BUILD.md`, and `docs/dev/ENVIRONMENT.md`. Files reviewed in the manifest: all four; no exclusions were listed.
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!18243
No description provided.