[pr-diagnostics][memory] memory now: the PC's commit charge beside the process's private bytes #131
Loading…
Reference in a new issue
No description provided.
Delete branch "nyutt/commit-charge-line"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Contributor role (optional)
What it changes
Nothing in the log said whether a PC needs its page file:
memory now:'s "committed" is the process's private bytes. They leave out the title's sections, and on NVIDIA they include the card's memory the driver maps into the process.compile memory:'s "left to commit" (GlobalMemoryStatusEx) counts what an expandable page file can still grow to, not what is left now.memory now:(once a second) now also gives the PC's commit charge, all programs together, fromGetPerformanceInfo: the charge now, its limit, the most since Windows started, and how far the charge and the peak each pass the RAM. Example:; the PC's commit charge 51438 MB of a limit of 53131 MB, against 31621 MB of RAM (19816 MB past the RAM; the most since Windows started 52859 MB, 21237 MB past the RAM)One call a second, no lock, no switch. The doc comment records the measurements below.
How it was tested
7f1d1b5(this change onmain57dea7f) for the gates and tests. The game run used the same change on v2026.12.03.01 (bd0de0c), built asv2026.12.03.01-ramso that the shader cache stayed valid.7f1d1b5:cargo clippy --workspace --all-targets --locked -- -D warnings: clean.cargo clippy --workspace --all-targets --all-features --locked -- -D warnings: clean.cargo test --locked -p darner-gpu --lib commit_charge: 2 passed (a_charge_within_the_ram_says_so,what_passes_the_ram_is_named_now_and_at_its_peak).cargo xtask policy --staged: ok.cargo test --workspace --lockedwas not run in full.DARNER_PROCESS_MEMORY=1. One run of 15 minutes:compile memory:said "33476 MB left to commit" and this line said 51,438 MB charged of a 53,131 MB limit. Windows'\Memory\Committed Bytescounter agreed with this line (51,564 MB of 52,102 MB, read during the run).Win32_PageFileUsage).GetPerformanceInforeports what Wine gives).Checklist
main.docs/asset-policy.md.Checked for overlap
memory now:line. #59 and #62 cut the layer's own memory; #110 changes the compile memory floor (#70). This line gives them a figure to measure against.This change was made with AI assistance (Claude Code).
🤖 Generated with Claude Code