15#ifndef BT_QUICK_PROF_H
16#define BT_QUICK_PROF_H
179 static void Reset(
void );
215#define BT_PROFILE( name ) CProfileSample __profile( name )
btEnterProfileZoneFunc * btGetCurrentEnterProfileZoneFunc()
void() btLeaveProfileZoneFunc()
void btSetCustomEnterProfileZoneFunc(btEnterProfileZoneFunc *enterFunc)
void btSetCustomLeaveProfileZoneFunc(btLeaveProfileZoneFunc *leaveFunc)
const unsigned int BT_QUICKPROF_MAX_THREAD_COUNT
unsigned int btQuickprofGetCurrentThreadIndex2()
void() btEnterProfileZoneFunc(const char *msg)
btLeaveProfileZoneFunc * btGetCurrentLeaveProfileZoneFunc()
float btScalar
The btScalar type abstracts floating point numbers, to easily switch between double and single floati...
An iterator to navigate through the tree.
void Enter_Child(int index)
int Get_Current_Parent_Total_Calls(void)
CProfileNode * CurrentChild
void Set_Current_UserPointer(void *ptr)
int Get_Current_Total_Calls(void)
void Enter_Largest_Child(void)
const char * Get_Current_Name(void)
float Get_Current_Parent_Total_Time(void)
void * Get_Current_UserPointer(void)
const char * Get_Current_Parent_Name(void)
CProfileNode * CurrentParent
float Get_Current_Total_Time(void)
CProfileIterator(CProfileNode *start)
The Manager for the Profile system.
static void Increment_Frame_Counter(void)
static void Release_Iterator(CProfileIterator *iterator)
static float Get_Time_Since_Reset(void)
static CProfileIterator * Get_Iterator(void)
static int Get_Frame_Count_Since_Reset(void)
static void CleanupMemory(void)
static void dumpRecursive(CProfileIterator *profileIterator, int spacing)
static void Start_Profile(const char *name)
static void Stop_Profile(void)
static unsigned long int ResetTime
A node in the Profile Hierarchy Tree.
CProfileNode * Get_Sub_Node(const char *name)
float Get_Total_Time(void)
CProfileNode * Get_Parent(void)
void * GetUserPointer() const
void SetUserPointer(void *ptr)
unsigned long int StartTime
CProfileNode(const char *name, CProfileNode *parent)
int Get_Total_Calls(void)
const char * Get_Name(void)
CProfileNode * Get_Child(void)
CProfileNode * Get_Sibling(void)
ProfileSampleClass is a simple way to profile a function's scope Use the BT_PROFILE macro at the star...
CProfileSample(const char *name)
The btClock is a portable basic clock that measures accurate time in seconds, use for profiling.
btScalar getTimeSeconds()
Returns the time in s since the last call to reset or since the Clock was created.
unsigned long long int getTimeNanoseconds()
void reset()
Resets the initial reference time.
struct btClockData * m_data
unsigned long long int getTimeMilliseconds()
Returns the time in ms since the last call to reset or since the btClock was created.
unsigned long long int getTimeMicroseconds()
Returns the time in us since the last call to reset or since the Clock was created.
btClock()
The btClock is a portable basic clock that measures accurate time in seconds, use for profiling.
btClock & operator=(const btClock &other)