c

class BaseProfilingInterface

Include: Base/ProfilingInterface.h

A virtual interface base class for classes that can profile for performance.

Functions

char const * GetDebugText(simul::base::TextStyle st)
simul::base::ProfileData const * GetEvent(simul::base::ProfileData, int)
int GetMaxLevel()
void SetMaxLevel(int m)
void StartFrame()

A virtual interface base class for classes that can profile for performance.

Functions

char const * GetDebugText(simul::base::TextStyle st)

Gets the profiling report as text.

stDetermines if the text should be returned as HTML, including colour formatting.

Return

null if it fails, else the debug text.

simul::base::ProfileData const * GetEvent(simul::base::ProfileData, int)

Get profile data for the event at index i. Returns NULL for i<0 or i>= number of events. Null parent means the top-level events.

int GetMaxLevel()

Call this to get the maximum level of the profiling tree.

void SetMaxLevel(int m)

Call this to set the maximum level of the profiling tree.

void StartFrame()

Call this at the start of the frame to reset values.