Skyscraper 2.0
SBS::ProfileNode Class Reference

A node in the Profile Hierarchy Tree. More...

#include <profiler.h>

Collaboration diagram for SBS::ProfileNode:

Public Member Functions

 ProfileNode (const char *name, ProfileNode *parent)
 
 ~ProfileNode (void)
 
ProfileNodeGet_Sub_Node (const char *name)
 
ProfileNodeGet_Parent (void)
 
ProfileNodeGet_Sibling (void)
 
ProfileNodeGet_Child (void)
 
void CleanupMemory ()
 
void Reset (void)
 
void Call (void)
 
bool Return (void)
 
const char * Get_Name (void)
 
int Get_Total_Calls (void)
 
float Get_Total_Time (void)
 

Protected Attributes

const char * Name
 
int TotalCalls
 
float TotalTime
 
unsigned long int StartTime
 
int RecursionCounter
 
ProfileNodeParent
 
ProfileNodeChild
 
ProfileNodeSibling
 

Detailed Description

A node in the Profile Hierarchy Tree.

Definition at line 17 of file profiler.h.

Constructor & Destructor Documentation

◆ ProfileNode()

SBS::ProfileNode::ProfileNode ( const char * name,
ProfileNode * parent )

Definition at line 57 of file profiler.cpp.

References Reset().

Referenced by Get_Sub_Node().

Here is the call graph for this function:

◆ ~ProfileNode()

SBS::ProfileNode::~ProfileNode ( void )

Definition at line 79 of file profiler.cpp.

References Child, and Sibling.

Member Function Documentation

◆ Call()

void SBS::ProfileNode::Call ( void )

Definition at line 129 of file profiler.cpp.

References SBS::Profile_Get_Ticks(), RecursionCounter, StartTime, and TotalCalls.

Referenced by SBS::ProfileManager::Reset(), and SBS::ProfileManager::Start_Profile().

Here is the call graph for this function:

◆ CleanupMemory()

void SBS::ProfileNode::CleanupMemory ( )

Definition at line 71 of file profiler.cpp.

References Child, and Sibling.

◆ Get_Child()

◆ Get_Name()

const char * SBS::ProfileNode::Get_Name ( void )
inline

Definition at line 34 of file profiler.h.

Referenced by SBS::ProfileManager::Start_Profile().

◆ Get_Parent()

ProfileNode * SBS::ProfileNode::Get_Parent ( void )
inline

◆ Get_Sibling()

ProfileNode * SBS::ProfileNode::Get_Sibling ( void )
inline

Definition at line 26 of file profiler.h.

Referenced by SBS::ProfileIterator::Enter_Child(), and SBS::ProfileIterator::Next().

◆ Get_Sub_Node()

ProfileNode * SBS::ProfileNode::Get_Sub_Node ( const char * name)

Definition at line 94 of file profiler.cpp.

References Child, Name, ProfileNode(), and Sibling.

Referenced by SBS::ProfileManager::Start_Profile().

Here is the call graph for this function:

◆ Get_Total_Calls()

int SBS::ProfileNode::Get_Total_Calls ( void )
inline

Definition at line 35 of file profiler.h.

◆ Get_Total_Time()

float SBS::ProfileNode::Get_Total_Time ( void )
inline

Definition at line 36 of file profiler.h.

◆ Reset()

void SBS::ProfileNode::Reset ( void )

Definition at line 114 of file profiler.cpp.

References Child, Reset(), Sibling, TotalCalls, and TotalTime.

Referenced by ProfileNode(), SBS::ProfileManager::Reset(), and Reset().

Here is the call graph for this function:

◆ Return()

bool SBS::ProfileNode::Return ( void )

Definition at line 138 of file profiler.cpp.

References SBS::Profile_Get_Tick_Rate(), SBS::Profile_Get_Ticks(), RecursionCounter, StartTime, TotalCalls, and TotalTime.

Referenced by SBS::ProfileManager::Stop_Profile().

Here is the call graph for this function:

Member Data Documentation

◆ Child

ProfileNode* SBS::ProfileNode::Child
protected

Definition at line 47 of file profiler.h.

Referenced by CleanupMemory(), Get_Sub_Node(), Reset(), and ~ProfileNode().

◆ Name

const char* SBS::ProfileNode::Name
protected

Definition at line 40 of file profiler.h.

Referenced by Get_Sub_Node().

◆ Parent

ProfileNode* SBS::ProfileNode::Parent
protected

Definition at line 46 of file profiler.h.

◆ RecursionCounter

int SBS::ProfileNode::RecursionCounter
protected

Definition at line 44 of file profiler.h.

Referenced by Call(), and Return().

◆ Sibling

ProfileNode* SBS::ProfileNode::Sibling
protected

Definition at line 48 of file profiler.h.

Referenced by CleanupMemory(), Get_Sub_Node(), Reset(), and ~ProfileNode().

◆ StartTime

unsigned long int SBS::ProfileNode::StartTime
protected

Definition at line 43 of file profiler.h.

Referenced by Call(), and Return().

◆ TotalCalls

int SBS::ProfileNode::TotalCalls
protected

Definition at line 41 of file profiler.h.

Referenced by Call(), Reset(), and Return().

◆ TotalTime

float SBS::ProfileNode::TotalTime
protected

Definition at line 42 of file profiler.h.

Referenced by Reset(), and Return().


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