[pr-diagnostics][memory] Report peak VRAM use and budget share in frame-log summaries #202

Open
superhero-520 wants to merge 1 commit from superhero-520/Darner:frame-log-vram-peaks into main
First-time contributor

Contributor role (optional)

Role not requested.

What it changes

The texture queue logs both local video memory in use and its effective budget. On main, the frame-log summary reports the render-target reserve but omits those two measurements. This adds peak_video_memory_used_mb and peak_video_memory_budget_usage_pct for frames selected by the existing filters. The percentage is the largest single-sample ratio and can exceed 100%. A missing or zero budget still allows the script to report the peak MB value.

How it was tested

  • Tested revision: 147164d391. Its full Git tree matches local test commit ddd205a.
  • python -B -m unittest discover -s tests -p test_summarize_frame_log.py passed all 8 tests, including on the files fetched back from the published branch.
  • Compared the old and new CLI on 10 archived Darner play logs. All existing JSON fields matched. Eight logs had eligible frames and two returned empty summaries. One had 377 samples, a peak of 6,260 MB and a peak budget share of 134.45%.
  • Both workspace Clippy gates passed with warnings denied. cargo xtask policy passed on 556 files.
  • The workspace test gate is not green on this machine. With Microsoft DXC 1.8.2505.32, watch::tests::ask_once_by_res_splits_reservations_without_refusals failed in the GPU suite on both the candidate and its unmodified upstream base ad070f0. It passed when run alone on both. An earlier run using Windows SDK 19041 also failed two DXC tests on both revisions. Both passed with the newer compiler.
  • This is an offline Python reporting change. No gameplay defaults change. No new gameplay run or FPS claim. Hardware and shader wave size do not affect the Python parser.

Checklist

  • Tested the reporting change on saved game logs. It runs after gameplay.
  • One change based on upstream main.
  • The diff follows the asset policy.
  • Dependencies recorded. Depends on none.

Checked for overlap

  • Searched open and closed issues and PRs and checked the changed files of open PRs.
  • Related: #150 addresses the write-watch test failure above. #172 and #173 cover other benchmark reporting in PowerShell.
  • Replaces or overlaps: none found.
## Contributor role (optional) Role not requested. ## What it changes The texture queue logs both local video memory in use and its effective budget. On `main`, the frame-log summary reports the render-target reserve but omits those two measurements. This adds `peak_video_memory_used_mb` and `peak_video_memory_budget_usage_pct` for frames selected by the existing filters. The percentage is the largest single-sample ratio and can exceed 100%. A missing or zero budget still allows the script to report the peak MB value. ## How it was tested - Tested revision: `147164d391`. Its full Git tree matches local test commit `ddd205a`. - `python -B -m unittest discover -s tests -p test_summarize_frame_log.py` passed all 8 tests, including on the files fetched back from the published branch. - Compared the old and new CLI on 10 archived Darner play logs. All existing JSON fields matched. Eight logs had eligible frames and two returned empty summaries. One had 377 samples, a peak of 6,260 MB and a peak budget share of 134.45%. - Both workspace Clippy gates passed with warnings denied. `cargo xtask policy` passed on 556 files. - The workspace test gate is not green on this machine. With Microsoft DXC 1.8.2505.32, `watch::tests::ask_once_by_res_splits_reservations_without_refusals` failed in the GPU suite on both the candidate and its unmodified upstream base `ad070f0`. It passed when run alone on both. An earlier run using Windows SDK 19041 also failed two DXC tests on both revisions. Both passed with the newer compiler. - This is an offline Python reporting change. No gameplay defaults change. No new gameplay run or FPS claim. Hardware and shader wave size do not affect the Python parser. ## Checklist - [x] Tested the reporting change on saved game logs. It runs after gameplay. - [x] One change based on upstream main. - [x] The diff follows the asset policy. - [x] Dependencies recorded. Depends on none. ## Checked for overlap - [x] Searched open and closed issues and PRs and checked the changed files of open PRs. - Related: #150 addresses the write-watch test failure above. #172 and #173 cover other benchmark reporting in PowerShell. - Replaces or overlaps: none found.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
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 'frame-log-vram-peaks:superhero-520-frame-log-vram-peaks'
git switch 'superhero-520-frame-log-vram-peaks'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'superhero-520-frame-log-vram-peaks'
git switch 'superhero-520-frame-log-vram-peaks'
git rebase 'main'
git switch 'main'
git merge --ff-only 'superhero-520-frame-log-vram-peaks'
git switch 'superhero-520-frame-log-vram-peaks'
git rebase 'main'
git switch 'main'
git merge --no-ff 'superhero-520-frame-log-vram-peaks'
git switch 'main'
git merge --squash 'superhero-520-frame-log-vram-peaks'
git switch 'main'
git merge --ff-only 'superhero-520-frame-log-vram-peaks'
git switch 'main'
git merge 'superhero-520-frame-log-vram-peaks'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
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.

Dependencies

No dependencies set

Reference
TrustNo1/Darner!202
No description provided.