mirror of
https://github.com/tangerineturtle1/NX2navi.git
synced 2026-11-17 22:19:57 -04:00
Under the perf trace, report frame times per route segment and take a memory snapshot after each area load.
An input script line "<tick> MARK <name>" (or "@<ms> MARK <name>") ends the running segment with one line of its frame count, mean, 1% low and worst frame, the work marks on any thread, process memory and VRAM, then the 600-frame memory lines, and starts a segment of that name. RomFS opens of an area's static placement file give a "scene:" line, and once no area has loaded for 10 s the memory snapshot is taken with a "settled" line. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -57,6 +57,12 @@ enum { PERF_M_FILE, PERF_M_ZSTD, PERF_M_PIPE, PERF_M_GMEM, PERF_M_POOL, PERF_M_D
|
||||
uint64_t perf_mark_begin(void);
|
||||
void perf_mark_end(int kind, uint64_t t0, uint64_t bytes); // nothing when t0 is 0
|
||||
void perf_mark_add(int kind, uint64_t ns, uint64_t bytes); // nothing while the trace is off
|
||||
// NX2NAVI_TRACE=perf segments and scenes (perf.c): perf_segment ends the running segment of presents at the next present
|
||||
// with a line of its frame times (mean, 1% low, worst), the work marks above, process memory and VRAM, then the memory
|
||||
// snapshot, and starts one named name (the input script's MARK lines, input.c). perf_scene notes an area's load
|
||||
// (romfs.c, the area's static placement file) and takes the memory snapshot once no area has loaded for 10 s.
|
||||
void perf_segment(const char *name);
|
||||
void perf_scene(const char *name);
|
||||
// NX2NAVI_REPLAY_TIME=1: how long the replay spends in each kind of op (perf.c perf_replay_op reports it with the
|
||||
// frame-time summary). Draws and dispatches include their bindings and the vkCmd calls they record; binds are the state
|
||||
// and resource binds between them; xfer is copies and clears.
|
||||
|
||||
Reference in New Issue
Block a user