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