SBSPSS/tools/psyq/include/PROFILE.H

31 lines
690 B
C++
Raw Normal View History

2000-08-29 18:26:01 +02:00
#define PROFMASK unsigned int
typedef struct _profentry
{
void* address;
unsigned int flags;
} profentry;
typedef struct _profhdr
{
void* start;
void* end;
profentry* buffptr;
profentry* buffend;
unsigned int flags;
unsigned int mask;
profentry* ptr;
} profhdr;
/*************************************************/
/* Profiler functions */
/*************************************************/
extern void INITprofile(void* ptr, unsigned int length);
extern void SETprofrange(PROFMASK mask, void* startpc, void* endpc);
extern PROFMASK SETprofileflags(PROFMASK flags);
extern PROFMASK CLRprofileflags(PROFMASK flags);
extern void SNprofile();