GPU: card meter and process memory lines in every build #1626

Merged
mizzied merged 1 commit from upstream-pr/1626 into main 2026-11-29 08:16:55 +00:00
mizzied commented 2026-11-28 22:34:18 +00:00 (Migrated from github.com)

Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by mizzied on 2026-11-28T22:34:18Z.


What it adds. Two log lines in every build, not only diagnostic builds:

  • Card meter: the card's time per frame, by kind of command list and by the pipelines they bind. It's read a second after the frames, from timestamp queries.
  • Process memory: committed bytes by owner every 5 s. That's console address ranges (the title's private and mapped memory) against the layer's own heaps and the driver's.

Both help when a report says slow or crashed without a profile. They show where the card's time and the process's memory go from a plain log.

How it was tested. RTX 5070, Windows 11. Five unit tests cover the meter's grouping and reading and the memory line's attribution. cargo test --workspace passes apart from repository_passes_policy, which already fails on main: lower.rs is over the 640 KiB file-size limit there (#1493 raises it). Clippy reports only the 16 findings already on main, none on lines this PR changes. The victory-gpu watch:: tests are flaky on this machine in files this PR does not touch, and pass on a rerun.

<!-- greyfinch-sync:trustno1-coder/VIctory-NVIDIA:issue:5545236401 --> Imported from [trustno1-coder/VIctory-NVIDIA](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/1626). Originally posted by [mizzied](https://github.com/mizzied) on 2026-11-28T22:34:18Z. --- **What it adds.** Two log lines in every build, not only diagnostic builds: - **Card meter:** the card's time per frame, by kind of command list and by the pipelines they bind. It's read a second after the frames, from timestamp queries. - **Process memory:** committed bytes by owner every 5 s. That's console address ranges (the title's private and mapped memory) against the layer's own heaps and the driver's. Both help when a report says `slow` or `crashed` without a profile. They show where the card's time and the process's memory go from a plain log. **How it was tested.** RTX 5070, Windows 11. Five unit tests cover the meter's grouping and reading and the memory line's attribution. `cargo test --workspace` passes apart from `repository_passes_policy`, which already fails on `main`: `lower.rs` is over the 640 KiB file-size limit there (#1493 raises it). Clippy reports only the 16 findings already on `main`, none on lines this PR changes. The `victory-gpu` `watch::` tests are flaky on this machine in files this PR does not touch, and pass on a rerun.
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
trustno1-coder/VIctory-NVIDIA!1626
No description provided.