diagnostics: add heap and readback phase profiling #1231

Open
github-bot wants to merge 3 commits from github-bot/gh-1231 into main AGit
Owner

@⁠spk-c on GitHub · 2026-11-26 00:59 UTC · original
spk-c:submit/phase-profiling → main · +69 −0 · 2 files · 3 commits · open

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.

**@⁠spk-c** on GitHub · 2026-11-26 00:59 UTC · [original](https://github.com/fxceless/victory-fork/pull/1231) `spk-c:submit/phase-profiling` → `main` · +69 −0 · 2 files · 3 commits · open 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.
Isolated contribution based on a183ea2. AI-assisted.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:00:01 +00:00
AI-assisted: keep original tested commit in history; local all-feature check and strict Clippy passed. Upstream asset-policy baseline remains open (#1357).
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1231/head:github-bot/gh-1231'
git switch 'github-bot/gh-1231'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1231'
git switch 'github-bot/gh-1231'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1231'
git switch 'github-bot/gh-1231'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1231'
git switch 'main'
git merge --squash 'github-bot/gh-1231'
git switch 'main'
git merge --ff-only 'github-bot/gh-1231'
git switch 'main'
git merge 'github-bot/gh-1231'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.