aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/psp/psp.spec2
-rw-r--r--backends/platform/psp/psp_main.cpp9
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;
}