gperf.h
808 Bytes
/*
* Definitions shared among profiler utilities
*/
#ifdef __sgi
typedef __psunsigned_t symaddr_t;
#else
typedef unsigned int symaddr_t;
#endif
typedef struct {
unsigned int start; /* starting address of text */
int numEntrs; /* number of entries in histogram */
unsigned short *histo; /* histogram data */
} gPerfHisto;
extern float Threshold; /* % cutoff for printing results */
extern unsigned int ServerMode; /* app initiates transfer of data */
extern unsigned int PrintCounts;
extern unsigned int PrintRealTime;
extern char *Namelist; /* a.out name */
extern void error(char *);
extern void report(int np, gPerfHisto *gp, int tp, int overflow);
extern int profServerInit(void);
extern int profServer(void);