Annotation of hatari/src/debug/profile.h, revision 1.1.1.4

1.1       root        1: /*
                      2:  * Hatari - profile.h
                      3:  * 
1.1.1.2   root        4:  * This file is distributed under the GNU General Public License, version 2
                      5:  * or at your option any later version. Read the file gpl.txt for details.
1.1       root        6:  */
                      7: 
                      8: #ifndef HATARI_PROFILE_H
                      9: #define HATARI_PROFILE_H
                     10: 
1.1.1.3   root       11: /* caller types */
                     12: #define CALL_UNDEFINED 0       /* = call type information not supported */
                     13: typedef enum {
                     14:        CALL_UNKNOWN    = 1,
                     15:        CALL_NEXT       = 2,
                     16:        CALL_BRANCH     = 4,
                     17:        CALL_SUBROUTINE = 8,
                     18:        CALL_SUBRETURN  = 16,
                     19:        CALL_EXCEPTION  = 32,
                     20:        CALL_EXCRETURN  = 64,
                     21:        CALL_INTERRUPT  = 128
                     22: } calltype_t;
                     23: 
1.1       root       24: /* profile command parsing */
                     25: extern const char Profile_Description[];
                     26: extern char *Profile_Match(const char *text, int state);
1.1.1.2   root       27: extern int Profile_Command(int nArgc, char *psArgs[], bool bForDsp);
1.1       root       28: 
                     29: /* CPU profile control */
                     30: extern bool Profile_CpuStart(void);
                     31: extern void Profile_CpuUpdate(void);
                     32: extern void Profile_CpuStop(void);
1.1.1.2   root       33: 
1.1       root       34: /* CPU profile results */
1.1.1.4 ! root       35: extern bool Profile_CpuAddressData(Uint32 addr, float *percentage, Uint32 *count, Uint32 *cycles, Uint32 *i_misses, Uint32 *d_hits);
1.1       root       36: 
                     37: /* DSP profile control */
                     38: extern bool Profile_DspStart(void);
                     39: extern void Profile_DspUpdate(void);
                     40: extern void Profile_DspStop(void);
1.1.1.2   root       41: 
1.1       root       42: /* DSP profile results */
1.1.1.2   root       43: extern bool Profile_DspAddressData(Uint16 addr, float *percentage, Uint64 *count, Uint64 *cycles, Uint16 *cycle_diff);
1.1       root       44: 
                     45: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.