Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | Related Pages

ProfileData Class Reference

#include <profile.h>

Inheritance diagram for ProfileData:

Inheritance graph
[legend]
Collaboration diagram for ProfileData:

Collaboration graph
[legend]
List of all members.

Detailed Description

Data for a profile block A profiling block contains data for an execution block. It is identified by name and has data of total execution time and number of times the block has been executed. A profiling block can have any number of child blocks and a single parent block, arranging the blocks in a tree structure. This way relative percentages can be calculated to see where most of the time in a block is spent.

Author:
Mattias Jansson (mattias@realityrift.com)


Public Member Functions

 ProfileData (const std::string &rstrName, ProfileData *pkParent=0)
virtual ~ProfileData ()
virtual void Dump ()
virtual void DumpToString (std::string *pstrDst)
virtual void Reset ()

Public Attributes

HashString m_strName
ProfileDatam_pkParent
std::vector< ProfileData * > m_vpkChildren
uint64_t m_ulActivated
uint64_t m_ulAccTime
int m_iCount
int m_iLevel


Constructor & Destructor Documentation

ProfileData const std::string &  rstrName,
ProfileData pkParent = 0
 

Parameters:
rstrName Node name
pkParent Parent node

virtual ~ProfileData  )  [virtual]
 

Delete child nodes


Member Function Documentation

virtual void Dump  )  [virtual]
 

Dump data

Reimplemented in ProfileManager.

virtual void DumpToString std::string *  pstrDst  )  [virtual]
 

Dump data to string

Parameters:
pstrDst String receiving data

Reimplemented in ProfileManager.

virtual void Reset  )  [virtual]
 

Reset values


Member Data Documentation

HashString m_strName
 

Node name

ProfileData* m_pkParent
 

Parent data node

std::vector< ProfileData* > m_vpkChildren
 

Child data nodes

uint64_t m_ulActivated
 

Activated heartbeat

uint64_t m_ulAccTime
 

Accumulated heartbeat time

int m_iCount
 

Counter

int m_iLevel
 

Recursion level


The documentation for this class was generated from the following file:
Generated on Wed Jan 21 14:21:13 2004 for NeoEngine by doxygen 1.3.5