The profiler allows you to measure the performance of your code.
More...
#include <OgreProfiler.h>
The profiler allows you to measure the performance of your code.
- Author
- Amit Mathew (amitmathew (at) yahoo (dot) com)
◆ Profiler()
| Ogre::Profiler::Profiler |
( |
| ) |
|
◆ ~Profiler()
| Ogre::Profiler::~Profiler |
( |
| ) |
|
◆ setTimer()
| void Ogre::Profiler::setTimer |
( |
Timer * |
t | ) |
|
Sets the timer for the profiler.
◆ getTimer()
| Timer * Ogre::Profiler::getTimer |
( |
| ) |
|
Retrieves the timer for the profiler.
◆ beginProfile()
Begins a profile.
- Parameters
-
| profileName | Must be unique and must not be an empty string |
| groupID | A profile group identifier, which can allow you to mask profiles |
◆ endProfile()
Ends a profile.
- Parameters
-
| profileName | Must be unique and must not be an empty string |
| groupID | A profile group identifier, which can allow you to mask profiles |
◆ beginGPUEvent()
| void Ogre::Profiler::beginGPUEvent |
( |
const String & |
event | ) |
|
Mark the beginning of a GPU event group.
◆ endGPUEvent()
| void Ogre::Profiler::endGPUEvent |
( |
const String & |
event | ) |
|
Mark the end of a GPU event group.
◆ markGPUEvent()
| void Ogre::Profiler::markGPUEvent |
( |
const String & |
event | ) |
|
Mark a specific, ungrouped, GPU event.
◆ setEnabled()
| void Ogre::Profiler::setEnabled |
( |
bool |
enabled | ) |
|
Sets whether this profiler is enabled.
Only takes effect after the the frame has ended.
◆ getEnabled()
| bool Ogre::Profiler::getEnabled |
( |
| ) |
const |
Gets whether this profiler is enabled.
◆ enableProfile()
| void Ogre::Profiler::enableProfile |
( |
const String & |
profileName | ) |
|
Enables a previously disabled profile.
◆ disableProfile()
| void Ogre::Profiler::disableProfile |
( |
const String & |
profileName | ) |
|
◆ setProfileGroupMask()
| void Ogre::Profiler::setProfileGroupMask |
( |
uint32 |
mask | ) |
|
|
inline |
Set the mask which all profiles must pass to be enabled.
◆ getProfileGroupMask()
| uint32 Ogre::Profiler::getProfileGroupMask |
( |
| ) |
const |
|
inline |
Get the mask which all profiles must pass to be enabled.
◆ watchForMax()
| bool Ogre::Profiler::watchForMax |
( |
const String & |
profileName | ) |
|
Returns true if the specified profile reaches a new frame time maximum.
◆ watchForMin()
| bool Ogre::Profiler::watchForMin |
( |
const String & |
profileName | ) |
|
Returns true if the specified profile reaches a new frame time minimum.
◆ watchForLimit()
| bool Ogre::Profiler::watchForLimit |
( |
const String & |
profileName, |
|
|
Real |
limit, |
|
|
bool |
greaterThan = true |
|
) |
| |
Returns true if the specified profile goes over or under the given limit frame time.
- Parameters
-
| limit | A number between 0 and 1 representing the percentage of frame time |
| greaterThan | If true, this will return whether the limit is exceeded. Otherwise, it will return if the frame time has gone under this limit. |
◆ logResults()
| void Ogre::Profiler::logResults |
( |
| ) |
|
Outputs current profile statistics to the log.
◆ reset()
| void Ogre::Profiler::reset |
( |
| ) |
|
Clears the profiler statistics.
◆ setUpdateDisplayFrequency()
| void Ogre::Profiler::setUpdateDisplayFrequency |
( |
uint |
freq | ) |
|
Sets the Profiler so the display of results are updated every n frames.
◆ getUpdateDisplayFrequency()
| uint Ogre::Profiler::getUpdateDisplayFrequency |
( |
| ) |
const |
Gets the frequency that the Profiler display is updated.
◆ addListener()
- Parameters
-
| listener | A valid listener derived class |
◆ removeListener()
- Parameters
-
| listener | A valid listener derived class |
◆ getSingleton()
| static Profiler & Ogre::Profiler::getSingleton |
( |
void |
| ) |
|
|
static |
Get the singleton instance.
◆ getSingletonPtr()
| static Profiler * Ogre::Profiler::getSingletonPtr |
( |
void |
| ) |
|
|
static |
Get the singleton instance.
◆ ProfileInstance
The documentation for this class was generated from the following file: