diff options
author | Yotam Barnoy | 2010-04-26 12:12:42 +0000 |
---|---|---|
committer | Yotam Barnoy | 2010-04-26 12:12:42 +0000 |
commit | 6ccdb3cba0d936645b74bcb0a332bc2188e23c27 (patch) | |
tree | 275f3f9561db4b79cae87aaec3b3f712dd14d9ae | |
parent | 20c0710db9a86badab09071bc2f7b3634836429d (diff) | |
download | scummvm-rg350-6ccdb3cba0d936645b74bcb0a332bc2188e23c27.tar.gz scummvm-rg350-6ccdb3cba0d936645b74bcb0a332bc2188e23c27.tar.bz2 scummvm-rg350-6ccdb3cba0d936645b74bcb0a332bc2188e23c27.zip |
PSP: Added support for profiling using configure:
svn-id: r48804
-rw-r--r-- | backends/platform/psp/psp.spec | 2 | ||||
-rw-r--r-- | backends/platform/psp/psp_main.cpp | 9 |
2 files changed, 9 insertions, 2 deletions
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 <pspprof.h> +#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; } |