mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-18 17:29:57 -04:00
Break the memory report down past VMA, by owner in system memory, and by growth over a session.
Every report adds a line for video memory outside VMA (the driver's usage and budget per heap against VMA's blocks, and counts of pipelines by kind and by last use, stage libraries, compute pipelines, layouts and descriptor pools, with the swapchain, DLSS and FSR sizes), a line that splits the process's commit by owner (the game's heap and maps, device-local memory, VMA's host blocks, the C runtime heap with the shader caches, pipeline tables, texture cache, log queue and flight recorder in it, the driver's pipeline cache data and the rest), and a line naming what grew by more than 64 MiB since the report before and since play began. Every ten minutes of play and at exit a ranking line orders the categories by growth and marks those that only climbed; tests/mem_growth_check.py checks that bookkeeping. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,6 +11,9 @@ extern int flight_on;
|
||||
extern int vk_dump_white; // vk_dump.c, NX2NAVI_DUMP_WHITE // NX2NAVI_FLIGHT=1, set once by flight_init before the first present
|
||||
|
||||
void flight_init(void); // prof_start calls it
|
||||
// Its memory in bytes, for the memory report (vk_memory.c system_log): the records and texture events in process memory,
|
||||
// and the thumbnail ring in host-visible memory. 0 while it is off.
|
||||
void flight_mem(uint64_t *records, uint64_t *thumbs);
|
||||
// perf_present, once per present on the render thread: the interval since the previous present, the render thread's
|
||||
// blocked time per PERF_* kind in this frame, and the running PERF_CNT_* totals.
|
||||
void flight_frame(uint64_t frame, uint64_t now_ns, uint64_t interval_ns, const uint64_t blocked_ns[],
|
||||
|
||||
Reference in New Issue
Block a user