![]() |
VR-Forces 4.6 Class Documentation
|
Profile node class stores timing data for a profiled section. More...
Public Types | |
| enum | Attributes { ENONE = 0, EVIRTUAL = 1, EINVISIBLE = 2, ENODE = 3 } |
Public Member Functions | |
| DtProfileNode (const char *name, DtProfileManager *mgr, DtProfileNode *parent, Attributes attr) | |
| CTOR. | |
| ~DtProfileNode () | |
| DTOR. | |
| DtProfileNode * | getChildNode (const char *, Attributes attr=ENONE) |
| Finds the child with the give name or creates it Strings need to be a string literal since only pointer comparisons are done. | |
| bool | isVirtual () const |
| bool | isInvisible () const |
| DtProfileNode * | parent () const |
| Get the parent of this node. | |
| DtProfileNode * | sibling () const |
| Get the next sibling to this node. | |
| DtProfileNode * | child () const |
| Get the first child of this node. | |
| void | reset () |
| reset the timing data and call count of this node | |
| const char * | name () const |
| returns the name of the node | |
| int | totalCalls () const |
| get the total calls since last reset | |
| DtProfileStat | totalTime () const |
| get the total time since last reset | |
| DtProfileStat | timeLastFrame () const |
| get the total time since last frame | |
| unsigned | nestingLevel () const |
| get the nesting level | |
| void | nextFrame () |
Protected Types | |
| typedef tbb::spin_mutex | StatMutex |
| IMPORTANT: compared by pointer value frequently identical string that is not the same object may not work. | |
| typedef tbb::spin_rw_mutex | Mutex |
Protected Member Functions | |
| DtProfileTimestamp | call () |
| increment the call count and timing data of this node | |
| bool | finish (const DtProfileTimestamp &start) |
| end the current call timing data. | |
Protected Attributes | |
| DtProfileManager * | myManager |
| const char * | myName |
| StatMutex | myStatMutex |
| DtProfileStat | myTotalTime |
| DtProfileStat | myTimeLastFrame |
| cumulative since reset | |
| tbb::atomic< int > | myTotalCalls |
| cumulative time in this frame | |
| tbb::atomic< int > | myTotalCallsThisFrame |
| number of times function was called | |
| Mutex | myMutex |
| DtProfileNode * | myParent |
| tree | |
| DtProfileNode * | myLogParent |
| DtProfileNode * | myLogRoot |
| DtProfileNode * | myChild |
| DtProfileNode * | mySibling |
| unsigned | myNestingLevel |
| Attributes | myAttributes |
| DtColumnLogger::Column * | myParentColumn |
| column for this node in the log output | |
| DtColumnLogger::Column * | myTimeColumn |
| DtColumnLogger::Column * | myInstColumn |
| DtColumnLogger::Column * | myRateColumn |
Friends | |
| class | DtProfileManager |
Profile node class stores timing data for a profiled section.
|
protected |
IMPORTANT: compared by pointer value frequently identical string that is not the same object may not work.
|
protected |
| makVrf::DtProfileNode::DtProfileNode | ( | const char * | name, |
| DtProfileManager * | mgr, | ||
| DtProfileNode * | parent, | ||
| Attributes | attr | ||
| ) |
CTOR.
| makVrf::DtProfileNode::~DtProfileNode | ( | ) |
DTOR.
| DtProfileNode* makVrf::DtProfileNode::getChildNode | ( | const char * | , |
| Attributes | attr = ENONE |
||
| ) |
Finds the child with the give name or creates it Strings need to be a string literal since only pointer comparisons are done.
|
inline |
|
inline |
|
inline |
Get the parent of this node.
|
inline |
Get the next sibling to this node.
|
inline |
Get the first child of this node.
| void makVrf::DtProfileNode::reset | ( | ) |
reset the timing data and call count of this node
|
inline |
returns the name of the node
|
inline |
get the total calls since last reset
|
inline |
get the total time since last reset
| DtProfileStat makVrf::DtProfileNode::timeLastFrame | ( | ) | const |
get the total time since last frame
|
inline |
get the nesting level
| void makVrf::DtProfileNode::nextFrame | ( | ) |
|
protected |
increment the call count and timing data of this node
|
protected |
end the current call timing data.
If this is a recursive function this will only increment the call count, but not end the timing data until the last function ends
|
friend |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
cumulative since reset
|
protected |
cumulative time in this frame
frame tracking stuff
|
protected |
number of times function was called
|
mutableprotected |
|
protected |
tree
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
column for this node in the log output
|
protected |
|
protected |
|
protected |