--- hatari/src/debug/profile.h 2019/04/09 08:53:06 1.1.1.2 +++ hatari/src/debug/profile.h 2019/04/09 08:55:36 1.1.1.4 @@ -8,6 +8,19 @@ #ifndef HATARI_PROFILE_H #define HATARI_PROFILE_H +/* caller types */ +#define CALL_UNDEFINED 0 /* = call type information not supported */ +typedef enum { + CALL_UNKNOWN = 1, + CALL_NEXT = 2, + CALL_BRANCH = 4, + CALL_SUBROUTINE = 8, + CALL_SUBRETURN = 16, + CALL_EXCEPTION = 32, + CALL_EXCRETURN = 64, + CALL_INTERRUPT = 128 +} calltype_t; + /* profile command parsing */ extern const char Profile_Description[]; extern char *Profile_Match(const char *text, int state); @@ -19,7 +32,7 @@ extern void Profile_CpuUpdate(void); extern void Profile_CpuStop(void); /* CPU profile results */ -extern bool Profile_CpuAddressData(Uint32 addr, float *percentage, Uint32 *count, Uint32 *cycles, Uint32 *misses); +extern bool Profile_CpuAddressData(Uint32 addr, float *percentage, Uint32 *count, Uint32 *cycles, Uint32 *i_misses, Uint32 *d_hits); /* DSP profile control */ extern bool Profile_DspStart(void);