hush
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user