This commit is contained in:
Jan Racek
2026-03-24 13:01:47 +01:00
parent 55c1d2c39b
commit e51c06b012
51 changed files with 8111 additions and 491 deletions

View File

@@ -1,10 +1,11 @@
#include "profiler.hh"
#include "psyqo/xprintf.h"
#ifdef PSXSPLASH_PROFILER
using namespace psxsplash::debug;
void pcsxRegisterVariable(void* address, const char* name) {
// Writes address+name to the PCSX-Redux debugger variable registry.
static void pcsxRegisterVariable(void* address, const char* name) {
register void* a0 asm("a0") = address;
register const char* a1 asm("a1") = name;
__asm__ volatile("sb %0, 0x2081(%1)" : : "r"(255), "r"(0x1f800000), "r"(a0), "r"(a1));
@@ -25,8 +26,6 @@ void Profiler::reset() {
}
}
void Profiler::dumpToTTY() {
printf("profiler.rendering:%d,profiler.lua:%d,profiler.controls:%d,profiler.navmesh:%d\n", sectionTimes[0], sectionTimes[1], sectionTimes[2], sectionTimes[3]);
}
#endif // PSXSPLASH_PROFILER