mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 13:04:59 +00:00
Make prof to work in a transparent way
This commit is contained in:
@@ -11,7 +11,7 @@ CFLAGS = @PSPSDK_CFLAGS@ -std=gnu99 -Wall -Wmissing-prototypes
|
||||
CCASFLAGS = $(CFLAGS) -I$(top_srcdir)/src/base -I$(top_srcdir)/src/kernel
|
||||
|
||||
libpspprofincludedir = @PSPSDK_INCLUDEDIR@
|
||||
libpspprofinclude_HEADERS = pspprof.h
|
||||
libpspprofinclude_HEADERS =
|
||||
|
||||
lib_LIBRARIES = libpspprof.a
|
||||
libpspprof_a_SOURCES = prof.c mcount.s
|
||||
|
||||
@@ -78,7 +78,7 @@ extern int _ftext;
|
||||
extern int _etext;
|
||||
|
||||
/* forward declarations */
|
||||
void gprof_cleanup(void);
|
||||
void __gprof_cleanup(void);
|
||||
void __mcount(unsigned int, unsigned int);
|
||||
static SceUInt timer_handler(SceUID uid, SceKernelSysClock *c1, SceKernelSysClock *c2, void *common);
|
||||
|
||||
@@ -156,7 +156,7 @@ static void initialize()
|
||||
Called from atexit() handler; will dump out a host:gmon.out file
|
||||
with all collected information.
|
||||
*/
|
||||
void gprof_cleanup()
|
||||
void __gprof_cleanup()
|
||||
{
|
||||
FILE *fp;
|
||||
int i;
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/*
|
||||
* PSP Software Development Kit - https://github.com/pspdev
|
||||
* -----------------------------------------------------------------------
|
||||
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
|
||||
*
|
||||
* pspprof.h - Prototypes for the profiler library
|
||||
*
|
||||
* Copyright (c) 2006 Urchin
|
||||
*
|
||||
*/
|
||||
#ifndef __PSPPROF_H__
|
||||
#define __PSPPROF_H__
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void gprof_cleanup();
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __PSPPROF_H__ */
|
||||
Reference in New Issue
Block a user