Diagnostics/process memory snapshot #484
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!484
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/484/head"
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?
@ToxicmaggotRP on GitHub · 2026-11-24 03:57 UTC · original
ToxicmaggotRP:diagnostics/process-memory-snapshot→main· +48 −9 · 1 files · 3 commits · closed without mergingDiagnostics: report process private and resident memory
Related to #471 (memory growth during world load).
What
The diagnostics copy-stat line already samples process page faults through
K32GetProcessMemoryInfo, but it only requests the basePROCESS_MEMORY_COUNTERSstructure.This change adds the extended counters needed to correlate copy-path measurements with the process's actual memory footprint:
PROCESS_MEMORY_COUNTERS_EX.PrivateUsage(process private commit charge) andWorkingSetSize(resident working set) in GiB.This is process-wide telemetry. It does not attribute memory to individual pools or staging buffers, and it does not fix the memory ceiling by itself. It provides a reliable process-memory series to compare with existing copy statistics and the memory optimisations in #472.
Verification
windows-sys 0.61.2API signature and structure fields.PROCESS_MEMORY_COUNTERS_EX.crates/victory-gpu/src/copystat.rschanges.main, with no upstream commits missing.cargo fmt,cargo check -p victory-gpu --features diagnostics, tests, and a Windows diagnostics run were not performed because Rust/Cargo are unavailable in the development environment.No game assets or proprietary files used.
AI-assisted contribution (ChatGPT).
Pull request closed