![]() |
VR-Forces 4.6.1 Class Documentation
|
The profile manager responsible for all profiling. More...
Classes | |
| struct | DtThreadProfileData |
Public Types | |
| typedef std::map< std::string, DtColumnLogger * > | LoggerMap |
Public Member Functions | |
| DtProfileManager () | |
| bool | enabled () const |
| void | setEnabled (bool) |
| DtProfileTimestamp | startProfile (const char *name, DtProfileNode::Attributes) |
| begin a profile. This function is thread safe | |
| DtProfileTimestamp | startProfile (const std::string &name, DtProfileNode::Attributes) |
| void | stopProfile (const DtProfileTimestamp &) |
| begin stop a profile. This function is thread safe | |
| DtUInt64 | getTime () |
| Get a timestamp in CPU ticks. This function is thread safe. | |
| void | reset () |
| reset the entire tree | |
| void | incrementFrameCounter () |
| increments the frame counter. | |
| int | frameCountSinceReset () |
| get the number of frames since reset | |
| DtUInt64 | timeSinceReset () |
| get the number of ticks since reset | |
| double | averageFps () |
| get the average frames per second over the last second | |
| double | instantFps () |
| get the instantaneous frames per second | |
| double | instantFrameTime () |
| get the frame time in milliseconds | |
| double | averageFrameTime () |
| DtProfileIterator * | profileIterator () |
| create a profile iterator | |
| void | releaseIterator (DtProfileIterator *iterator) |
| release a profile iterator | |
| DtColumnLogger & | logger (std::string=std::string()) |
| void | printLoggers (bool paused, double dT, double simTime, double realTime) |
| void | printExtraInfo (const std::string &) |
| DtThreadProfileData * | getCurrentProfileNode (DtProfileNode *=0) |
| get the profiler data for a particular thread | |
| const char * | getString (const std::string &) |
| void | rollover (const std::string &tag) |
Static Public Member Functions | |
| static DtProfileManager & | Instance () |
Private Types | |
| typedef tbb::spin_rw_mutex | StringSetMutex |
| typedef boost::unordered_set < std::string > | StringSet |
Private Attributes | |
| tbb::concurrent_vector < DtThreadProfileData * > | theThreadProfileData |
| bool | myEnabledFlag |
| bool | theShouldReset |
| int | theFrameCounter |
| DtUInt64 | theResetTime |
| DtUInt64 | thePreviousFrame |
| DtUInt64 * | theFrameTimes |
| int | theFrameTimeIndex |
| LoggerMap | myLoggers |
| std::string | myTag |
| StringSetMutex | myStringsMutex |
| StringSet | myStrings |
| DtProfileNode | theRoot |
The profile manager responsible for all profiling.
| typedef std::map<std::string, DtColumnLogger*> makVrf::DtProfileManager::LoggerMap |
|
private |
|
private |
| makVrf::DtProfileManager::DtProfileManager | ( | ) |
|
static |
| bool makVrf::DtProfileManager::enabled | ( | ) | const |
| void makVrf::DtProfileManager::setEnabled | ( | bool | ) |
| DtProfileTimestamp makVrf::DtProfileManager::startProfile | ( | const char * | name, |
| DtProfileNode::Attributes | |||
| ) |
begin a profile. This function is thread safe
| DtProfileTimestamp makVrf::DtProfileManager::startProfile | ( | const std::string & | name, |
| DtProfileNode::Attributes | |||
| ) |
| void makVrf::DtProfileManager::stopProfile | ( | const DtProfileTimestamp & | ) |
begin stop a profile. This function is thread safe
| DtUInt64 makVrf::DtProfileManager::getTime | ( | ) |
Get a timestamp in CPU ticks. This function is thread safe.
| void makVrf::DtProfileManager::reset | ( | ) |
reset the entire tree
| void makVrf::DtProfileManager::incrementFrameCounter | ( | ) |
increments the frame counter.
This needs to be called once per frame from the main thread in order to compute time/frame correctly
|
inline |
get the number of frames since reset
| DtUInt64 makVrf::DtProfileManager::timeSinceReset | ( | ) |
get the number of ticks since reset
| double makVrf::DtProfileManager::averageFps | ( | ) |
get the average frames per second over the last second
| double makVrf::DtProfileManager::instantFps | ( | ) |
get the instantaneous frames per second
| double makVrf::DtProfileManager::instantFrameTime | ( | ) |
get the frame time in milliseconds
| double makVrf::DtProfileManager::averageFrameTime | ( | ) |
| DtProfileIterator* makVrf::DtProfileManager::profileIterator | ( | ) |
create a profile iterator
| void makVrf::DtProfileManager::releaseIterator | ( | DtProfileIterator * | iterator | ) |
release a profile iterator
| DtColumnLogger& makVrf::DtProfileManager::logger | ( | std::string | = std::string() | ) |
| void makVrf::DtProfileManager::printLoggers | ( | bool | paused, |
| double | dT, | ||
| double | simTime, | ||
| double | realTime | ||
| ) |
| void makVrf::DtProfileManager::printExtraInfo | ( | const std::string & | ) |
| DtThreadProfileData* makVrf::DtProfileManager::getCurrentProfileNode | ( | DtProfileNode * | = 0 | ) |
get the profiler data for a particular thread
| const char* makVrf::DtProfileManager::getString | ( | const std::string & | ) |
| void makVrf::DtProfileManager::rollover | ( | const std::string & | tag | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
mutableprivate |
|
private |
|
private |