Total each allocation once in the commit census, add a size breakdown, and write the profile on a crash

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HtayeqEG2x5woYzWuEQBGV
This commit is contained in:
Tyler
2026-11-08 16:27:05 -05:00
committed by chrg6
parent 3e10da4d5c
commit 2270664be2
3 changed files with 26 additions and 5 deletions

View File

@@ -37,6 +37,7 @@
#include "cfg.h"
#include "host.h"
#include "prof.h"
#include "platform/platform.h"
#include "sha256.h"
@@ -276,6 +277,7 @@ static void crash_handler(const PlatCrash *x) {
kern_free_cores_note();
rtss_limit_restore(); // after the report: RivaTuner Statistics Server's profile as it was
fflush(stderr);
prof_sampler_write(); // NX2NAVI_PROFILE: what was sampled until the crash (it gives up after 2 s if the sampler hangs)
plat_exit(71);
}