![]() |
VR-Forces 4.5 Class Documentation
|
Profile node class stores timing data for a profiled section. More...
Public Member Functions | |
| void * | operator new (std::size_t size) |
| Custom allocators since this class uses an internal memory pool. | |
| void | operator delete (void *memory) |
| DtProfileNode (const char *name, DtProfileNode *parent) | |
| CTOR. | |
| ~DtProfileNode () | |
| DTOR. | |
| DtProfileNode * | getChildNode (const char *name) |
| Finds the child with the give name or creates it Strings need to be a string literal since only pointer comparisons are done. | |
| 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 | |
| void | call () |
| increment the call count and timing data of this node | |
| bool | finish () |
| end the current call timing data. | |
| const char * | name () const |
| returns the name of the node | |
| int | totalCalls () const |
| get the total calls since last reset | |
| DtUInt64 | totalTime () const |
| get the total time since last reset | |
| DtUInt64 | maxTime () const |
| DtUInt64 | minTime () const |
| DtUInt64 | timeLastFrame () const |
| int | lastFrameCalled () const |
| int | callsLastFrame () const |
| void | nextFrame () |
Static Public Member Functions | |
| static int | nodeCount () |
| static int | maxNodes () |
Profile node class stores timing data for a profiled section.
| makVrv::DtProfileNode::DtProfileNode | ( | const char * | name, |
| DtProfileNode * | parent | ||
| ) |
CTOR.
| makVrv::DtProfileNode::~DtProfileNode | ( | ) |
DTOR.
| void* makVrv::DtProfileNode::operator new | ( | std::size_t | size | ) |
Custom allocators since this class uses an internal memory pool.
| void makVrv::DtProfileNode::operator delete | ( | void * | memory | ) |
| DtProfileNode* makVrv::DtProfileNode::getChildNode | ( | const char * | name | ) |
Finds the child with the give name or creates it Strings need to be a string literal since only pointer comparisons are done.
|
inline |
Get the parent of this node.
|
inline |
Get the next sibling to this node.
|
inline |
Get the first child of this node.
| void makVrv::DtProfileNode::reset | ( | ) |
reset the timing data and call count of this node
| void makVrv::DtProfileNode::call | ( | ) |
increment the call count and timing data of this node
| bool makVrv::DtProfileNode::finish | ( | ) |
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
|
inline |
returns the name of the node
|
inline |
get the total calls since last reset
|
inline |
get the total time since last reset
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| void makVrv::DtProfileNode::nextFrame | ( | ) |
|
static |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |