diagnostics: add heap and readback phase profiling #1228

Closed
spk-c wants to merge 3 commits from upstream-pr/1231 into main
spk-c commented 2026-11-26 00:59:52 +00:00 (Migrated from github.com)

Imported from fxceless/victory-fork. Originally posted by spk-c on 2026-11-26T00:59:52Z.


AI-assisted.

Summary

Preserve default-off heap and relay readback CPU timing through the upstream heap-worker update at f6a09d3. VICTORY_HEAP_PROFILE=1 reports descriptor scan and mirroring, span aggregation, and refresh for the full buffer pass before texture dispatch. The upstream worker kick and synchronous fallback are unchanged. VICTORY_READBACK_PROFILE=1 reports relay readback selection, buffer preparation, recording/submission, fence wait, CPU merge, and the inflight attempt. These wall-clock scopes can overlap. This PR is independent of coalesced readback.

Validation

On 2601107, workspace Cargo Check, Clippy in both CI configurations with warnings denied, and full asset policy passed. The targeted diagnostics run covered heap selection and relay/readback regressions. A separate serial run with WARP, the relay, the copy queue and both profiling switches enabled passed both end-to-end queue tests. No application or game workload was used.

Refresh against upstream 52ac4ec

New head 8ce9e09bbd7304d0a2f210a17065a05b0dd29963. Clean isolated workspace Cargo Check and strict all-feature Clippy passed. Profiling changes were not benchmarked again. Full upstream CI remains pending.

<!-- greyfinch-sync:fxceless/victory-fork:issue:5501965431 --> Imported from [fxceless/victory-fork](https://github.com/fxceless/victory-fork/pull/1231). Originally posted by [spk-c](https://github.com/spk-c) on 2026-11-26T00:59:52Z. --- AI-assisted. ## Summary Preserve default-off heap and relay readback CPU timing through the upstream heap-worker update at f6a09d3. VICTORY_HEAP_PROFILE=1 reports descriptor scan and mirroring, span aggregation, and refresh for the full buffer pass before texture dispatch. The upstream worker kick and synchronous fallback are unchanged. VICTORY_READBACK_PROFILE=1 reports relay readback selection, buffer preparation, recording/submission, fence wait, CPU merge, and the inflight attempt. These wall-clock scopes can overlap. This PR is independent of coalesced readback. ## Validation On 2601107, workspace Cargo Check, Clippy in both CI configurations with warnings denied, and full asset policy passed. The targeted diagnostics run covered heap selection and relay/readback regressions. A separate serial run with WARP, the relay, the copy queue and both profiling switches enabled passed both end-to-end queue tests. No application or game workload was used. ## Refresh against upstream 52ac4ec New head `8ce9e09bbd7304d0a2f210a17065a05b0dd29963`. Clean isolated workspace Cargo Check and strict all-feature Clippy passed. Profiling changes were not benchmarked again. Full upstream CI remains pending.

Pull request closed

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
fxceless/victory-fork!1228
No description provided.