Profiler Class Reference

#include <Profiler.h>

Inheritance diagram for Profiler:
ListenerObject

# Static Public Member Functions

static void initialize ()
 Initialize the profiler.
static void reset ()
 Reset the profiler's state.
static void start ()
 Start a new cycle of profiling.
static void end ()
 End the current profiling cycle.
static void lap (uint32 lapType, const char *processName)

# Private Attributes

VirtualList laps
 Laps during the current profiling cycle.
float timeProportion
float lastCycleTotalTime
float totalTime
uint32 interruptFlags
uint32 timePerGameFrameInMS
uint32 cycles
uint16 timerCounter
uint16 previousTimerCounter
uint8 currentProfilingProcess
bool started
bool initialized
bool printedProcessesNames
uint8 skipFrames
uint8 lastLapIndex
bool xpend
bool playedMIDISounds
bool processedCommunications
- Private Attributes inherited from ListenerObject
VirtualList events
 List of registered events.
int8 eventFirings
 Counter that keeps track of the number of fired events to prevent race conditions in nested firings.

# Additional Inherited Members

- Private Member Functions inherited from ListenerObject
void constructor ()
 Class' constructor.
void destructor ()
 Class' destructor.
void addEventListener (ListenerObject listener, uint16 eventCode)
void removeEventListener (ListenerObject listener, uint16 eventCode)
void removeEventListeners (uint16 eventCode)
void removeAllEventListeners ()
 Remove all listener objects.
bool hasActiveEventListeners ()
void fireEvent (uint16 eventCode)
void sendMessageTo (ListenerObject receiver, uint32 message, uint32 delay, uint32 randomDelay)
void sendMessageToSelf (uint32 message, uint32 delay, uint32 randomDelay)
void discardAllMessages ()
 Discard all messages, both to be sent and to be received.
void discardMessages (uint32 message)
virtual bool onEvent (ListenerObject eventFirer, uint16 eventCode)
virtual bool handleMessage (Telegram telegram)

# Detailed Description

Class SoundTest

Inherits from ListenerObject

Implements profiler that permits to measure how much time a process takes to complete.

Definition at line 43 of file Profiler.h.

# Member Function Documentation

# end()

static void Profiler::end ( )
static

End the current profiling cycle.

# initialize()

static void Profiler::initialize ( )
static

Initialize the profiler.

# lap()

static void Profiler::lap ( uint32 lapType,
const char * processName )
static

Register a lap during the current profiling cycle.

Parameters
lapTypeType of lap to record
processNameName of the process during the lap

# reset()

static void Profiler::reset ( )
static

Reset the profiler's state.

# start()

static void Profiler::start ( )
static

Start a new cycle of profiling.

# Member Data Documentation

# currentProfilingProcess

uint8 Profiler::currentProfilingProcess
private

Definition at line 56 of file Profiler.h.

# cycles

uint32 Profiler::cycles
private

Definition at line 53 of file Profiler.h.

# initialized

bool Profiler::initialized
private

Definition at line 58 of file Profiler.h.

# interruptFlags

uint32 Profiler::interruptFlags
private

Definition at line 51 of file Profiler.h.

# laps

VirtualList Profiler::laps
private

Laps during the current profiling cycle.

Definition at line 46 of file Profiler.h.

# lastCycleTotalTime

float Profiler::lastCycleTotalTime
private

Definition at line 49 of file Profiler.h.

# lastLapIndex

uint8 Profiler::lastLapIndex
private

Definition at line 61 of file Profiler.h.

# playedMIDISounds

bool Profiler::playedMIDISounds
private

Definition at line 63 of file Profiler.h.

# previousTimerCounter

uint16 Profiler::previousTimerCounter
private

Definition at line 55 of file Profiler.h.

# printedProcessesNames

bool Profiler::printedProcessesNames
private

Definition at line 59 of file Profiler.h.

# processedCommunications

bool Profiler::processedCommunications
private

Definition at line 64 of file Profiler.h.

# skipFrames

uint8 Profiler::skipFrames
private

Definition at line 60 of file Profiler.h.

# started

bool Profiler::started
private

Definition at line 57 of file Profiler.h.

# timePerGameFrameInMS

uint32 Profiler::timePerGameFrameInMS
private

Definition at line 52 of file Profiler.h.

# timeProportion

float Profiler::timeProportion
private

Definition at line 48 of file Profiler.h.

# timerCounter

uint16 Profiler::timerCounter
private

Definition at line 54 of file Profiler.h.

# totalTime

float Profiler::totalTime
private

Definition at line 50 of file Profiler.h.

# xpend

bool Profiler::xpend
private

Definition at line 62 of file Profiler.h.


The documentation for this class was generated from the following file:
  • VUEngine-Core/source/Debugging/Profiler/Profiler.h