SSBM Decomp
Loading...
Searching...
No Matches
perf.h File Reference
#include <dolphin/types.h>

Go to the source code of this file.

Data Structures

struct  Frame
struct  PerfEvent
struct  PerfSample

Typedefs

typedef u8 PERFId
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 PERFDumpScreen ()
void PERFPostDraw ()
void PERFSetDrawBWBarKey (int tf)
void PERFSetDrawBWBar (int tf)
void PERFSetDrawCPUBar (int tf)
void PERFSetDrawXFBars (int tf)
void PERFSetDrawRASBar (int tf)
void PERFToggleDrawBWBarKey ()
void PERFToggleDrawBWBar ()
void PERFToggleDrawCPUBar ()
void PERFToggleDrawXFBars ()
void PERFToggleDrawRASBar ()

Variables

void(* GameDrawInit )()
struct FramePERFFrames
unsigned long PERFCurrFrame
struct PerfEventPERFEvents

Typedef Documentation

◆ PERFId

typedef u8 PERFId

◆ PERFAllocator

typedef void *(* PERFAllocator) (u32 size)

◆ PERFDeallocator

typedef void(* PERFDeallocator) (void *block)

◆ PERFDrawCallback

typedef void(* PERFDrawCallback) (void)

Enumeration Type Documentation

◆ PerfType

enum PerfType
Enumerator
PERF_CPU_EVENT 
PERF_CPU_GP_EVENT 
PERF_GP_EVENT 

Function Documentation

◆ PERFInit()

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

◆ PERFEventStart()

void PERFEventStart ( PERFId id)

◆ PERFEventEnd()

void PERFEventEnd ( PERFId id)

◆ PERFSetEvent()

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

◆ PERFStartFrame()

void PERFStartFrame ( void )

◆ PERFEndFrame()

void PERFEndFrame ( void )

◆ PERFStartAutoSampling()

void PERFStartAutoSampling ( f32 msInterval)

◆ PERFStopAutoSampling()

void PERFStopAutoSampling ( void )

◆ PERFPreDraw()

void PERFPreDraw ( )

◆ PERFDumpScreen()

void PERFDumpScreen ( )

◆ PERFPostDraw()

void PERFPostDraw ( )

◆ PERFSetDrawBWBarKey()

void PERFSetDrawBWBarKey ( int tf)

◆ PERFSetDrawBWBar()

void PERFSetDrawBWBar ( int tf)

◆ PERFSetDrawCPUBar()

void PERFSetDrawCPUBar ( int tf)

◆ PERFSetDrawXFBars()

void PERFSetDrawXFBars ( int tf)

◆ PERFSetDrawRASBar()

void PERFSetDrawRASBar ( int tf)

◆ PERFToggleDrawBWBarKey()

void PERFToggleDrawBWBarKey ( )

◆ PERFToggleDrawBWBar()

void PERFToggleDrawBWBar ( )

◆ PERFToggleDrawCPUBar()

void PERFToggleDrawCPUBar ( )

◆ PERFToggleDrawXFBars()

void PERFToggleDrawXFBars ( )

◆ PERFToggleDrawRASBar()

void PERFToggleDrawRASBar ( )

Variable Documentation

◆ GameDrawInit

void(* GameDrawInit) () ( )
extern

◆ PERFFrames

struct Frame* PERFFrames
extern

◆ PERFCurrFrame

unsigned long PERFCurrFrame
extern

◆ PERFEvents

struct PerfEvent* PERFEvents
extern