From 6ccdb3cba0d936645b74bcb0a332bc2188e23c27 Mon Sep 17 00:00:00 2001 From: Yotam Barnoy Date: Mon, 26 Apr 2010 12:12:42 +0000 Subject: PSP: Added support for profiling using configure: svn-id: r48804 --- backends/platform/psp/psp.spec | 2 +- backends/platform/psp/psp_main.cpp | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) (limited to 'backends') diff --git a/backends/platform/psp/psp.spec b/backends/platform/psp/psp.spec index 688a59e51c..debdab3208 100644 --- a/backends/platform/psp/psp.spec +++ b/backends/platform/psp/psp.spec @@ -1,3 +1,3 @@ %rename lib old_lib *lib: -%(old_lib) -lz -lstdc++ -lc -lm -lpspvfpu -lpspdebug -lpspgu -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpsputility -lpspuser -lpsppower -lpsphprm -lpsprtc -lpspaudio +%(old_lib) -lz -lstdc++ -lc -lm -lpspprof -lpspvfpu -lpspdebug -lpspgu -lpspge -lpspdisplay -lpspctrl -lpspsdk -lpsputility -lpspuser -lpsppower -lpsphprm -lpsprtc -lpspaudio -lpspkernel diff --git a/backends/platform/psp/psp_main.cpp b/backends/platform/psp/psp_main.cpp index 15e8d5a856..5a14abf4f7 100644 --- a/backends/platform/psp/psp_main.cpp +++ b/backends/platform/psp/psp_main.cpp @@ -44,7 +44,9 @@ #include "osys_psp.h" #include "./trace.h" - +#ifdef ENABLE_PROFILING + #include +#endif /** * Define the module info section @@ -96,6 +98,11 @@ void loaderInit() { /* Exit callback */ int exit_callback(void) { + +#ifdef ENABLE_PROFILING + gprof_cleanup(); +#endif + sceKernelExitGame(); return 0; } -- cgit v1.2.3