class
ProfilingManager
Tracks CPU profiling information with each frame for main and render threads.
Public
Constructors
ProfilingManager
Methods
~ProfilingManager
UpdateInternal
Called every frame.
UpdateRenderThreadInternal
Called every frame from the render thread.
GetReport
Returns a profiler report for the specified frame, for the specified thread.
- thread
- Thread for which to retrieve the profiler report.
- idx
- Profiler report index, ranging [0, NUM_SAVED_FRAMES]. 0 always returns the latest report. Increasing indexes return reports for older and older frames. Out of range indexes will be clamped.
staticInstance
Returns a reference to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticInstancePtr
Returns a pointer to the module instance.
Module has to have been started up first otherwise an exception will be thrown.
staticShutDown
Shuts down this module and frees any resources it is using.
staticIsStarted
Query if the module has been started.
Protected
Methods
~Module<T>
OnStartUp
Override if you want your module to be notified once it has been constructed and started.
OnShutDown
Override if you want your module to be notified just before it is deleted.
staticInstanceInternal
Returns a singleton instance of this module.