This commit is contained in:
commit
47aee91ef4
396 changed files with 32003 additions and 0 deletions
30
tools/psyq/include/PROFILE.H
Normal file
30
tools/psyq/include/PROFILE.H
Normal file
|
@ -0,0 +1,30 @@
|
|||
#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();
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue