LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Data Structures | Macros | Typedefs | Variables
gmon.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  clockinfo
 
struct  gmonhdr
 
struct  tostruct
 
struct  rawarc
 
struct  gmonparam
 

Macros

#define FUNCTION_ALIGNMENT   16
 
#define GMONVERSION   0x00051879
 
#define HISTCOUNTER   unsigned short
 
#define HISTFRACTION
 
#define HASHFRACTION
 
#define ARCDENSITY   2
 
#define MINARCS   50
 
#define MAXARCS   (((u_long)1 << (8 * sizeof(u_short))) - 2)
 
#define ROUNDDOWN(x, y)   (((x)/(y))*(y))
 
#define ROUNDUP(x, y)   ((((x)+(y)-1)/(y))*(y))
 
#define GMON_PROF_ON   0
 
#define GMON_PROF_BUSY   1
 
#define GMON_PROF_ERROR   2
 
#define GMON_PROF_OFF   3
 
#define GMON_PROF_HIRES   4
 
#define GPROF_STATE   0 /* int: profiling enabling variable */
 
#define GPROF_COUNT   1 /* struct: profile tick count buffer */
 
#define GPROF_FROMS   2 /* struct: from location hash bucket */
 
#define GPROF_TOS   3 /* struct: destination/count structure */
 
#define GPROF_GMONPARAM   4 /* struct: profiling parameters (see above) */
 
#define CALIB_SCALE   1000
 
#define KCOUNT(p, index)
 

Typedefs

typedef u_int fptrint_t
 
typedef int fptrdiff_t
 
typedef u_int uintfptr_t
 

Variables

struct gmonparam _gmonparam
 

Macro Definition Documentation

◆ ARCDENSITY

#define ARCDENSITY   2

Definition at line 144 of file gmon.h.

◆ CALIB_SCALE

#define CALIB_SCALE   1000

Definition at line 224 of file gmon.h.

◆ FUNCTION_ALIGNMENT

#define FUNCTION_ALIGNMENT   16

Definition at line 60 of file gmon.h.

◆ GMON_PROF_BUSY

#define GMON_PROF_BUSY   1

Definition at line 210 of file gmon.h.

◆ GMON_PROF_ERROR

#define GMON_PROF_ERROR   2

Definition at line 211 of file gmon.h.

◆ GMON_PROF_HIRES

#define GMON_PROF_HIRES   4

Definition at line 213 of file gmon.h.

◆ GMON_PROF_OFF

#define GMON_PROF_OFF   3

Definition at line 212 of file gmon.h.

◆ GMON_PROF_ON

#define GMON_PROF_ON   0

Definition at line 209 of file gmon.h.

◆ GMONVERSION

#define GMONVERSION   0x00051879

Definition at line 74 of file gmon.h.

◆ GPROF_COUNT

#define GPROF_COUNT   1 /* struct: profile tick count buffer */

Definition at line 219 of file gmon.h.

◆ GPROF_FROMS

#define GPROF_FROMS   2 /* struct: from location hash bucket */

Definition at line 220 of file gmon.h.

◆ GPROF_GMONPARAM

#define GPROF_GMONPARAM   4 /* struct: profiling parameters (see above) */

Definition at line 222 of file gmon.h.

◆ GPROF_STATE

#define GPROF_STATE   0 /* int: profiling enabling variable */

Definition at line 218 of file gmon.h.

◆ GPROF_TOS

#define GPROF_TOS   3 /* struct: destination/count structure */

Definition at line 221 of file gmon.h.

◆ HASHFRACTION

#define HASHFRACTION
Value:
(FUNCTION_ALIGNMENT / sizeof(unsigned short) == 0 \
? 1 : FUNCTION_ALIGNMENT / sizeof(unsigned short))
#define FUNCTION_ALIGNMENT
Definition: gmon.h:60

Definition at line 138 of file gmon.h.

◆ HISTCOUNTER

#define HISTCOUNTER   unsigned short

Definition at line 82 of file gmon.h.

◆ HISTFRACTION

#define HISTFRACTION
Value:
(FUNCTION_ALIGNMENT / sizeof(HISTCOUNTER) == 0 \
#define HISTCOUNTER
Definition: gmon.h:82

Definition at line 92 of file gmon.h.

◆ KCOUNT

#define KCOUNT (   p,
  index 
)
Value:
((p)->kcount[(index) \
/ (HISTFRACTION * sizeof(HISTCOUNTER))])
#define HISTFRACTION
Definition: gmon.h:92

Definition at line 225 of file gmon.h.

◆ MAXARCS

#define MAXARCS   (((u_long)1 << (8 * sizeof(u_short))) - 2)

Definition at line 151 of file gmon.h.

◆ MINARCS

#define MINARCS   50

Definition at line 145 of file gmon.h.

◆ ROUNDDOWN

#define ROUNDDOWN (   x,
 
)    (((x)/(y))*(y))

Definition at line 173 of file gmon.h.

◆ ROUNDUP

#define ROUNDUP (   x,
 
)    ((((x)+(y)-1)/(y))*(y))

Definition at line 174 of file gmon.h.

Typedef Documentation

◆ fptrdiff_t

typedef int fptrdiff_t

Definition at line 42 of file gmon.h.

◆ fptrint_t

typedef u_int fptrint_t

Definition at line 41 of file gmon.h.

◆ uintfptr_t

typedef u_int uintfptr_t

Definition at line 43 of file gmon.h.

Variable Documentation

◆ _gmonparam

struct gmonparam _gmonparam
extern

Definition at line 53 of file gmon.c.