VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Static Public Member Functions | Protected Attributes
makVrv::DtProfileNode Class Reference

Profile node class stores timing data for a profiled section. More...

Public Member Functions

void * operator new (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.
DtProfileNodegetChildNode (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.
DtProfileNodeparent () const
 Get the parent of this node.
DtProfileNodesibling () const
 Get the next sibling to this node.
DtProfileNodechild () 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 charname () 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
void nextFrame ()

Static Public Member Functions

static int nodeCount ()
static int maxNodes ()

Protected Attributes

const charmyName
DtUInt64 myTotalTime
DtUInt64 myStartTime
DtUInt64 myTimeLastFrame
DtUInt64 myMaxTime
DtUInt64 myMinTime
int myLastFrameCalled
int myTotalCalls
int myRecursionCounter
DtProfileNodemyParent
DtProfileNodemyChild
DtProfileNodemySibling

Detailed Description

Profile node class stores timing data for a profiled section.

Constructor & Destructor Documentation

makVrv::DtProfileNode::DtProfileNode ( const char name,
DtProfileNode parent 
)

CTOR.

makVrv::DtProfileNode::~DtProfileNode ( )

DTOR.

Member Function Documentation

void* makVrv::DtProfileNode::operator new ( 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.

DtProfileNode* makVrv::DtProfileNode::parent ( ) const
inline

Get the parent of this node.

DtProfileNode* makVrv::DtProfileNode::sibling ( ) const
inline

Get the next sibling to this node.

DtProfileNode* makVrv::DtProfileNode::child ( ) const
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

const char* makVrv::DtProfileNode::name ( ) const
inline

returns the name of the node

int makVrv::DtProfileNode::totalCalls ( ) const
inline

get the total calls since last reset

DtUInt64 makVrv::DtProfileNode::totalTime ( ) const
inline

get the total time since last reset

DtUInt64 makVrv::DtProfileNode::maxTime ( ) const
inline
DtUInt64 makVrv::DtProfileNode::minTime ( ) const
inline
DtUInt64 makVrv::DtProfileNode::timeLastFrame ( ) const
inline
int makVrv::DtProfileNode::lastFrameCalled ( ) const
inline
void makVrv::DtProfileNode::nextFrame ( )
static int makVrv::DtProfileNode::nodeCount ( )
static
static int makVrv::DtProfileNode::maxNodes ( )
static

Member Data Documentation

const char* makVrv::DtProfileNode::myName
protected
DtUInt64 makVrv::DtProfileNode::myTotalTime
protected
DtUInt64 makVrv::DtProfileNode::myStartTime
protected
DtUInt64 makVrv::DtProfileNode::myTimeLastFrame
protected
DtUInt64 makVrv::DtProfileNode::myMaxTime
protected
DtUInt64 makVrv::DtProfileNode::myMinTime
protected
int makVrv::DtProfileNode::myLastFrameCalled
protected
int makVrv::DtProfileNode::myTotalCalls
protected
int makVrv::DtProfileNode::myRecursionCounter
protected
DtProfileNode* makVrv::DtProfileNode::myParent
protected
DtProfileNode* makVrv::DtProfileNode::myChild
protected
DtProfileNode* makVrv::DtProfileNode::mySibling
protected

The documentation for this class was generated from the following file:

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)