VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.

Public Member Functions

void * operator new (std::size_t size)
 
void operator delete (void *memory)
 
 DtProfileNode (const char *name, DtProfileNode *parent)
 
 ~DtProfileNode ()
 
DtProfileNodegetChildNode (const char *name)
 
DtProfileNodeparent () const
 
DtProfileNodesibling () const
 
DtProfileNodechild () const
 
DtProfileNodelargestChild () const
 
void reset ()
 
void call ()
 
bool finish ()
 
const charname () const
 
int threadId () const
 
int totalCalls () const
 
DtUInt64 totalTime () const
 
DtUInt64 maxTime () const
 
DtUInt64 minTime () const
 
DtUInt64 timeLastFrame () const
 
int lastFrameCalled () const
 
int callsLastFrame () const
 
void nextFrame ()
 
void setUiOpen (bool open)
 
bool uiOpen ()
 

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
 
int myCallsLastFrame
 
int myThreadiId
 
DtProfileNodemyParent
 
DtProfileNodemyChild
 
DtProfileNodemySibling
 
bool myUiOpen
 

Constructor & Destructor Documentation

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

CTOR.

makVrv::DtProfileNode::~DtProfileNode ( )

DTOR.

Member Function Documentation

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.

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

Get the parent of this node.

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

Get the next sibling to this node.

DtProfileNode* makVrv::DtProfileNode::child ( ) const

Get the first child of this node.

DtProfileNode* makVrv::DtProfileNode::largestChild ( ) const

Get the largest 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

returns the name of the node

int makVrv::DtProfileNode::threadId ( ) const

get thread id (1=main thread)

int makVrv::DtProfileNode::totalCalls ( ) const

get the total calls since last reset

DtUInt64 makVrv::DtProfileNode::totalTime ( ) const

get the total time since last reset

DtUInt64 makVrv::DtProfileNode::maxTime ( ) const
DtUInt64 makVrv::DtProfileNode::minTime ( ) const
DtUInt64 makVrv::DtProfileNode::timeLastFrame ( ) const
int makVrv::DtProfileNode::lastFrameCalled ( ) const
int makVrv::DtProfileNode::callsLastFrame ( ) const
void makVrv::DtProfileNode::nextFrame ( )
static int makVrv::DtProfileNode::nodeCount ( )
static
static int makVrv::DtProfileNode::maxNodes ( )
static
void makVrv::DtProfileNode::setUiOpen ( bool  open)
bool makVrv::DtProfileNode::uiOpen ( )

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
int makVrv::DtProfileNode::myCallsLastFrame
protected
int makVrv::DtProfileNode::myThreadiId
protected
DtProfileNode* makVrv::DtProfileNode::myParent
protected
DtProfileNode* makVrv::DtProfileNode::myChild
protected
DtProfileNode* makVrv::DtProfileNode::mySibling
protected
bool makVrv::DtProfileNode::myUiOpen
protected

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

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)