Skyscraper 2.0
|
A node in the Profile Hierarchy Tree. More...
#include <profiler.h>
Public Member Functions | |
ProfileNode (const char *name, ProfileNode *parent) | |
~ProfileNode (void) | |
ProfileNode * | Get_Sub_Node (const char *name) |
ProfileNode * | Get_Parent (void) |
ProfileNode * | Get_Sibling (void) |
ProfileNode * | Get_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 |
ProfileNode * | Parent |
ProfileNode * | Child |
ProfileNode * | Sibling |
A node in the Profile Hierarchy Tree.
Definition at line 17 of file profiler.h.
SBS::ProfileNode::ProfileNode | ( | const char * | name, |
ProfileNode * | parent ) |
Definition at line 57 of file profiler.cpp.
References Reset().
Referenced by Get_Sub_Node().
SBS::ProfileNode::~ProfileNode | ( | void | ) |
Definition at line 79 of file profiler.cpp.
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().
void SBS::ProfileNode::CleanupMemory | ( | ) |
Definition at line 71 of file profiler.cpp.
|
inline |
Definition at line 27 of file profiler.h.
Referenced by SBS::ProfileIterator::Enter_Child(), SBS::ProfileIterator::Enter_Parent(), SBS::ProfileIterator::First(), and SBS::ProfileIterator::ProfileIterator().
|
inline |
Definition at line 34 of file profiler.h.
Referenced by SBS::ProfileManager::Start_Profile().
|
inline |
Definition at line 25 of file profiler.h.
Referenced by SBS::ProfileIterator::Enter_Parent(), and SBS::ProfileManager::Stop_Profile().
|
inline |
Definition at line 26 of file profiler.h.
Referenced by SBS::ProfileIterator::Enter_Child(), and SBS::ProfileIterator::Next().
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().
|
inline |
Definition at line 35 of file profiler.h.
|
inline |
Definition at line 36 of file profiler.h.
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().
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().
|
protected |
Definition at line 47 of file profiler.h.
Referenced by CleanupMemory(), Get_Sub_Node(), Reset(), and ~ProfileNode().
|
protected |
Definition at line 40 of file profiler.h.
Referenced by Get_Sub_Node().
|
protected |
Definition at line 46 of file profiler.h.
|
protected |
Definition at line 44 of file profiler.h.
|
protected |
Definition at line 48 of file profiler.h.
Referenced by CleanupMemory(), Get_Sub_Node(), Reset(), and ~ProfileNode().
|
protected |
Definition at line 43 of file profiler.h.
|
protected |
Definition at line 41 of file profiler.h.
|
protected |
Definition at line 42 of file profiler.h.