mirror of
https://github.com/valentderah/totk-pc-recomp.git
synced 2026-11-25 14:05:57 +00:00
Log GPU time per frame, VRAM, process RAM and a bound verdict in the perf line, and a pool census
Each submission part writes a timestamp pair under TOTK_TRACE=perf; the completion thread reads it and sums the busy time without double-counting overlap. A second 60-frame perf line carries GPU ms per frame, fence waits of the render thread and of other threads, VRAM usage and budget (VK_EXT_memory_budget, else the allocator's own blocks against the heap size), working set and private bytes, and bound: gpu, cpu or pace. Devices without timestamp bits or a timestamp period log one line and show gpu n/a. vk_mem_resolve now reports the pool class of a span. The replay counts bytes bound or copied per class and use, and vk_mem_census logs the live pools by kind and flags with that traffic at frame 1800 (every 1800 frames with perf). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
cb570e3e35
commit
94d5367040
10 files changed
+341
-10
No files matched your search
@@ -25,6 +25,12 @@ other `totk.exe` or `ninja.exe` runs. The log's first and last lines record the
|
||||
|
||||
- `--env TOTK_TRACE=perf,sched`, then `python tools/perf_summary.py <log> <lo> <hi>`: fps, max frame and the
|
||||
render-thread buckets per 60 frames. Per-thread run, core, host, lock and addr shares come per 120 presents.
|
||||
A second `perf: frame N: gpu avg` line per window has the GPU busy time per frame (timestamp queries per submission
|
||||
part, `vk_sync.c`; upload batches not included), fence waits of the render thread and of other threads, VRAM use and
|
||||
budget (`VK_EXT_memory_budget`), process RAM and `bound: gpu|cpu|pace` (pace: the frame waited for pacing 15% of the
|
||||
time or more; gpu: the GPU was busy 80% of the interval or more).
|
||||
- The pool census (`mem: census`, `vk_memory.c` `vk_mem_census`) is logged at frame 1800, with `perf` every 1800
|
||||
frames: pools by kind and flags, and the bytes bound or copied per frame by pool class since frame 1200.
|
||||
- `TOTK_PROFILE=1 TOTK_PROFILE_FRAMES=lo-hi`: sampling profiler (`runtime/prof_win.c`). Resolve `exe+0x...` RVAs
|
||||
with the build's `totk.map`.
|
||||
- `tools/regress.py <build> --base build/v121-m4 [--routes fight,rock,island,field] [--repeat 3] [--cold] [--validation]
|
||||
|
||||
Reference in new issue
Block a user