option to flush perf map after each write

e.g. for use while live debugging
This commit is contained in:
dzaima 2022-07-10 04:23:17 +03:00
parent 0b155e4416
commit 5de154fb54

View File

@ -517,6 +517,9 @@ static void onJIT(Body* body, u8* binEx, u64 sz) {
// printf("JIT %d:\n", perfid);
// vm_printPos(body->comp, bcPos, -1);
fprintf(perf_map, N64x" "N64x" JIT %d: BC@%u\n", (u64)binEx, sz, perfid++, bcPos);
#if PERF_MAP_FLUSH
fflush(perf_map);
#endif
#endif
#if WRITE_ASM
write_asm(binEx, sz);