Loading [MathJax]/extensions/tex2jax.js
Twilight Princess
Decompilation of The Legend of Zelda: Twilight Princess
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
perf.h File Reference

Go to the source code of this file.

Classes

struct  PerfSample
 
struct  Frame
 
struct  PerfEvent
 

Typedefs

typedef u8 PERFId
 
typedef struct PerfSample PerfSample
 
typedef void *(* PERFAllocator) (u32 size)
 
typedef void(* PERFDeallocator) (void *block)
 
typedef void(* PERFDrawCallback) (void)
 

Enumerations

enum  PerfType { PERF_CPU_EVENT , PERF_CPU_GP_EVENT , PERF_GP_EVENT }
 

Functions

u32 PERFInit (u32 numSamples, u32 numFramesHistory, u32 numTypes, PERFAllocator allocator, PERFDeallocator deallocator, PERFDrawCallback initDraw)
 
void PERFEventStart (PERFId id)
 
void PERFEventEnd (PERFId id)
 
void PERFSetEvent (PERFId id, char *name, PerfType type)
 
void PERFStartFrame (void)
 
void PERFEndFrame (void)
 
void PERFStartAutoSampling (f32 msInterval)
 
void PERFStopAutoSampling (void)
 
void PERFPreDraw (void)
 
void PERFDumpScreen (void)
 
void PERFPostDraw (void)
 
void PERFSetDrawBWBarKey (BOOL tf)
 
void PERFSetDrawBWBar (BOOL tf)
 
void PERFSetDrawCPUBar (BOOL tf)
 
void PERFSetDrawXFBars (BOOL tf)
 
void PERFSetDrawRASBar (BOOL tf)
 
void PERFToggleDrawBWBarKey (void)
 
void PERFToggleDrawBWBar (void)
 
void PERFToggleDrawCPUBar (void)
 
void PERFToggleDrawXFBars (void)
 
void PERFToggleDrawRASBar (void)
 
void PERFShutDown (void)
 
void PERFSetDrawFrames (u32 frames)
 

Variables

void(* GameDrawInit )()
 
FramePERFFrames
 
u32 PERFCurrFrame
 
PerfEventPERFEvents
 
u32 PERFNumEvents
 

Typedef Documentation

◆ PERFAllocator

typedef void *(* PERFAllocator) (u32 size)

◆ PERFDeallocator

typedef void(* PERFDeallocator) (void *block)

◆ PERFDrawCallback

typedef void(* PERFDrawCallback) (void)

◆ PERFId

typedef u8 PERFId

◆ PerfSample

typedef struct PerfSample PerfSample

Enumeration Type Documentation

◆ PerfType

enum PerfType
Enumerator
PERF_CPU_EVENT 
PERF_CPU_GP_EVENT 
PERF_GP_EVENT 

Function Documentation

◆ PERFDumpScreen()

void PERFDumpScreen ( void )

◆ PERFEndFrame()

void PERFEndFrame ( void )

◆ PERFEventEnd()

void PERFEventEnd ( PERFId id)

◆ PERFEventStart()

void PERFEventStart ( PERFId id)

◆ PERFInit()

u32 PERFInit ( u32 numSamples,
u32 numFramesHistory,
u32 numTypes,
PERFAllocator allocator,
PERFDeallocator deallocator,
PERFDrawCallback initDraw )

◆ PERFPostDraw()

void PERFPostDraw ( void )

◆ PERFPreDraw()

void PERFPreDraw ( void )

◆ PERFSetDrawBWBar()

void PERFSetDrawBWBar ( BOOL tf)

◆ PERFSetDrawBWBarKey()

void PERFSetDrawBWBarKey ( BOOL tf)

◆ PERFSetDrawCPUBar()

void PERFSetDrawCPUBar ( BOOL tf)

◆ PERFSetDrawFrames()

void PERFSetDrawFrames ( u32 frames)

◆ PERFSetDrawRASBar()

void PERFSetDrawRASBar ( BOOL tf)

◆ PERFSetDrawXFBars()

void PERFSetDrawXFBars ( BOOL tf)

◆ PERFSetEvent()

void PERFSetEvent ( PERFId id,
char * name,
PerfType type )

◆ PERFShutDown()

void PERFShutDown ( void )

◆ PERFStartAutoSampling()

void PERFStartAutoSampling ( f32 msInterval)

◆ PERFStartFrame()

void PERFStartFrame ( void )

◆ PERFStopAutoSampling()

void PERFStopAutoSampling ( void )

◆ PERFToggleDrawBWBar()

void PERFToggleDrawBWBar ( void )

◆ PERFToggleDrawBWBarKey()

void PERFToggleDrawBWBarKey ( void )

◆ PERFToggleDrawCPUBar()

void PERFToggleDrawCPUBar ( void )

◆ PERFToggleDrawRASBar()

void PERFToggleDrawRASBar ( void )

◆ PERFToggleDrawXFBars()

void PERFToggleDrawXFBars ( void )

Variable Documentation

◆ GameDrawInit

void(* GameDrawInit) () ( )
extern

◆ PERFCurrFrame

u32 PERFCurrFrame
extern

◆ PERFEvents

PerfEvent* PERFEvents
extern

◆ PERFFrames

Frame* PERFFrames
extern

◆ PERFNumEvents

u32 PERFNumEvents
extern