OGRE-Next
3.0.0
Object-Oriented Graphics Rendering Engine
|
Represents an individual profile call. More...
#include <OgreProfiler.h>
Public Types | |
typedef Ogre::map< String, ProfileInstance * >::type | ProfileChildrenMap |
typedef Ogre::vector< ProfileInstance * >::type | ProfileChildrenVec |
Public Member Functions | |
ProfileInstance () | |
virtual | ~ProfileInstance () |
void | destroyAllChildren () |
void | logResults () |
void | reset () |
bool | watchForLimit (const String &profileName, Real limit, bool greaterThan=true) |
bool | watchForLimit (Real limit, bool greaterThan=true) |
bool | watchForMax () |
bool | watchForMax (const String &profileName) |
bool | watchForMin () |
bool | watchForMin (const String &profileName) |
Public Attributes | |
uint64 | accum |
Represents the total time of all child profiles to subtract from this profile. More... | |
ProfileChildrenVec | children |
ProfileChildrenMap | childrenMap |
uint64 | currTime |
The time this profile was started. More... | |
ProfileFrame | frame |
ulong | frameNumber |
uint | hierarchicalLvl |
The hierarchical level of this profile, 0 being the root profile. More... | |
ProfileHistory | history |
String | name |
The name of the profile. More... | |
ProfileInstance * | parent |
The name of the parent, null if root. More... | |
Represents an individual profile call.
typedef Ogre::map<String, ProfileInstance *>::type Ogre::ProfileInstance::ProfileChildrenMap |
typedef Ogre::vector<ProfileInstance *>::type Ogre::ProfileInstance::ProfileChildrenVec |
Ogre::ProfileInstance::ProfileInstance | ( | ) |
|
virtual |
void Ogre::ProfileInstance::destroyAllChildren | ( | ) |
void Ogre::ProfileInstance::logResults | ( | ) |
void Ogre::ProfileInstance::reset | ( | ) |
bool Ogre::ProfileInstance::watchForLimit | ( | const String & | profileName, |
Real | limit, | ||
bool | greaterThan = true |
||
) |
|
inline |
References Ogre::ProfileHistory::currentTimePercent, and history.
|
inline |
bool Ogre::ProfileInstance::watchForMax | ( | const String & | profileName | ) |
|
inline |
bool Ogre::ProfileInstance::watchForMin | ( | const String & | profileName | ) |
uint64 Ogre::ProfileInstance::accum |
Represents the total time of all child profiles to subtract from this profile.
ProfileChildrenVec Ogre::ProfileInstance::children |
ProfileChildrenMap Ogre::ProfileInstance::childrenMap |
uint64 Ogre::ProfileInstance::currTime |
The time this profile was started.
ProfileFrame Ogre::ProfileInstance::frame |
ulong Ogre::ProfileInstance::frameNumber |
uint Ogre::ProfileInstance::hierarchicalLvl |
The hierarchical level of this profile, 0 being the root profile.
ProfileHistory Ogre::ProfileInstance::history |
Referenced by watchForLimit(), watchForMax(), and watchForMin().
String Ogre::ProfileInstance::name |
The name of the profile.
ProfileInstance* Ogre::ProfileInstance::parent |
The name of the parent, null if root.