mallgrab / psp-profiler-prx

Kernel module for debugging, returns profiling registers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

psp-profiler-prx

Kernel module for debugging, returns profiling registers.

make && make profilerLib.S

Move profiler.prx and profilerLib.S to your project.

In your project's Makefile include profilerLib.o to OBJS

Example:

SceUID modid;
PspDebugProfilerRegs regs;
int ret;
int fd;

modid = sceKernelLoadModule("profiler.prx", 0, NULL);
ret = sceKernelStartModule(modid, 0, NULL, &fd, NULL);

ProfileClear();
ProfileEnable();
ProfileGetRegs(&regs);

printf("D cache miss : %10u", regs.d_miss);

About

Kernel module for debugging, returns profiling registers.


Languages

Language:C 86.8%Language:Makefile 13.2%