Back to index

supertuxkart  0.5+dfsg1
Static Public Member Functions | Static Private Attributes
CProfileManager Class Reference

#include <btQuickprof.h>

Collaboration diagram for CProfileManager:
Collaboration graph
[legend]

List of all members.

Static Public Member Functions

static void Start_Profile (const char *name)
static void Stop_Profile (void)
static void Reset (void)
static void Increment_Frame_Counter (void)
static int Get_Frame_Count_Since_Reset (void)
static float Get_Time_Since_Reset (void)
static CProfileIteratorGet_Iterator (void)
static void Release_Iterator (CProfileIterator *iterator)

Static Private Attributes

static CProfileNode Root
static CProfileNodeCurrentNode = &CProfileManager::Root
static int FrameCounter = 0
static unsigned long int ResetTime = 0

Detailed Description

Definition at line 310 of file btQuickprof.h.


Member Function Documentation

static int CProfileManager::Get_Frame_Count_Since_Reset ( void  ) [inline, static]

Definition at line 317 of file btQuickprof.h.

{ return FrameCounter; }

Here is the caller graph for this function:

static CProfileIterator* CProfileManager::Get_Iterator ( void  ) [inline, static]

Definition at line 320 of file btQuickprof.h.

{ return new CProfileIterator( &Root ); }

Here is the caller graph for this function:

float CProfileManager::Get_Time_Since_Reset ( void  ) [static]

Definition at line 263 of file btQuickprof.cpp.

{
       unsigned long int time;
       Profile_Get_Ticks(&time);
       time -= ResetTime;
       return (float)time / Profile_Get_Tick_Rate();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void CProfileManager::Increment_Frame_Counter ( void  ) [static]

Definition at line 254 of file btQuickprof.cpp.

{
       FrameCounter++;
}

Here is the caller graph for this function:

static void CProfileManager::Release_Iterator ( CProfileIterator iterator) [inline, static]

Definition at line 321 of file btQuickprof.h.

{ delete iterator; }

Here is the caller graph for this function:

void CProfileManager::Reset ( void  ) [static]

Definition at line 242 of file btQuickprof.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void CProfileManager::Start_Profile ( const char *  name) [static]

Definition at line 214 of file btQuickprof.cpp.

{
       if (name != CurrentNode->Get_Name()) {
              CurrentNode = CurrentNode->Get_Sub_Node( name );
       } 
       
       CurrentNode->Call();
}

Here is the call graph for this function:

Here is the caller graph for this function:

void CProfileManager::Stop_Profile ( void  ) [static]

Definition at line 227 of file btQuickprof.cpp.

{
       // Return will indicate whether we should back up to our parent (we may
       // be profiling a recursive function)
       if (CurrentNode->Return()) {
              CurrentNode = CurrentNode->Get_Parent();
       }
}

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 325 of file btQuickprof.h.

int CProfileManager::FrameCounter = 0 [static, private]

Definition at line 326 of file btQuickprof.h.

unsigned long int CProfileManager::ResetTime = 0 [static, private]

Definition at line 327 of file btQuickprof.h.

Definition at line 324 of file btQuickprof.h.


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