c

class DefaultProfiler

Include: Base/ProfilingInterface.h

A simple profiler using simul::base::Timer Usage is as follows:

simul::base::DefaultProfiler cpuProfiler; … simul::base::SetProfilingInterface(&cpuProfiler);

SIMUL_COMBINED_PROFILE_STARTFRAME(deviceContext.platform_context)

SIMUL_COMBINED_PROFILE_START(deviceContext,”Element name”) SIMUL_COMBINED_PROFILE_END(deviceContext)

SIMUL_COMBINED_PROFILE_ENDFRAME(deviceContext)

cpuProfiler.SetMaxLevel(any number from 0 up); const char *text=cpuProfiler.GetDebugText(false);

and print this text to screen.

simul::base::ProfilingInterface

Functions

void Begin(char txt)
void End()
void EndFrame()

A simple profiler using simul::base::Timer Usage is as follows:

simul::base::DefaultProfiler cpuProfiler; … simul::base::SetProfilingInterface(&cpuProfiler);

SIMUL_COMBINED_PROFILE_STARTFRAME(deviceContext.platform_context)

SIMUL_COMBINED_PROFILE_START(deviceContext,”Element name”) SIMUL_COMBINED_PROFILE_END(deviceContext)

SIMUL_COMBINED_PROFILE_ENDFRAME(deviceContext)

cpuProfiler.SetMaxLevel(any number from 0 up); const char *text=cpuProfiler.GetDebugText(false);

and print this text to screen.

Base Classes

simul::base::ProfilingInterface

Functions

void Begin(char txt)

Mark the start of a profiling block.

void End()

Allocate nbytesbytes of memory, aligned to alignand return a pointer to them.

void EndFrame()

Call this at the start of the frame to set-up the profiler for data-gathering.