15 #ifndef BT_QUICK_PROF_H    16 #define BT_QUICK_PROF_H    19 #define USE_BT_CLOCK 1   103         void                            CleanupMemory();
   135         bool                Is_Root(
void) { 
return (CurrentParent->Get_Parent() == 0); }
   137         void                            Enter_Child( 
int index );               
   138         void                            Enter_Largest_Child( 
void );    
   139         void                            Enter_Parent( 
void );                   
   169         static  void                                            Start_Profile( 
const char * name );
   170         static  void                                            Stop_Profile( 
void );
   172         static  void                                            CleanupMemory(
void);
   177         static  void                                            Reset( 
void );
   178         static  void                                            Increment_Frame_Counter( 
void );
   180         static  float                                           Get_Time_Since_Reset( 
void );
   191         static void     dumpAll();
   202 #endif //#ifndef BT_NO_PROFILE   213 #define BT_PROFILE( name )                      CProfileSample __profile( name )   217 #endif //BT_QUICK_PROF_H void * GetUserPointer() const
void btSetCustomEnterProfileZoneFunc(btEnterProfileZoneFunc *enterFunc)
void btSetCustomLeaveProfileZoneFunc(btLeaveProfileZoneFunc *leaveFunc)
CProfileNode * Get_Child(void)
void Set_Current_UserPointer(void *ptr)
int Get_Total_Calls(void)
CProfileNode * CurrentParent
btScalar getTimeSeconds()
Returns the time in s since the last call to reset or since the Clock was created. 
btEnterProfileZoneFunc * btGetCurrentEnterProfileZoneFunc()
int Get_Current_Parent_Total_Calls(void)
unsigned long long int getTimeNanoseconds()
btLeaveProfileZoneFunc * btGetCurrentLeaveProfileZoneFunc()
const char * Get_Current_Name(void)
float Get_Current_Parent_Total_Time(void)
The btClock is a portable basic clock that measures accurate time in seconds, use for profiling...
float Get_Current_Total_Time(void)
void reset()
Resets the initial reference time. 
An iterator to navigate through the tree. 
static unsigned long int ResetTime
ProfileSampleClass is a simple way to profile a function's scope Use the BT_PROFILE macro at the star...
btClock()
The btClock is a portable basic clock that measures accurate time in seconds, use for profiling...
CProfileNode * Get_Sibling(void)
struct btClockData * m_data
unsigned long long int getTimeMicroseconds()
Returns the time in us since the last call to reset or since the Clock was created. 
void SetUserPointer(void *ptr)
static void Release_Iterator(CProfileIterator *iterator)
btClock & operator=(const btClock &other)
void * Get_Current_UserPointer(void)
void( btLeaveProfileZoneFunc)()
The Manager for the Profile system. 
unsigned long long int getTimeMilliseconds()
Returns the time in ms since the last call to reset or since the btClock was created. 
A node in the Profile Hierarchy Tree. 
CProfileNode * Get_Parent(void)
const unsigned int BT_QUICKPROF_MAX_THREAD_COUNT
int Get_Current_Total_Calls(void)
const char * Get_Name(void)
CProfileNode * CurrentChild
unsigned long int StartTime
static int Get_Frame_Count_Since_Reset(void)
float Get_Total_Time(void)
void( btEnterProfileZoneFunc)(const char *msg)
const char * Get_Current_Parent_Name(void)
unsigned int btQuickprofGetCurrentThreadIndex2()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...