Bullet Collision Detection & Physics Library
Classes | Macros | Functions | Variables
btQuickprof.cpp File Reference
#include "btQuickprof.h"
#include "btThreads.h"
#include <windows.h>
#include <time.h>
#include <stdio.h>
Include dependency graph for btQuickprof.cpp:

Go to the source code of this file.

Classes

struct  btClockData
 

Macros

#define BT_USE_WINDOWS_TIMERS
 
#define WIN32_LEAN_AND_MEAN
 
#define NOWINRES
 
#define NOMCX
 
#define NOIME
 
#define GetTickCount64   GetTickCount
 
#define mymin(a, b)   (a > b ? a : b)
 

Functions

void Profile_Get_Ticks (unsigned long int *ticks)
 
float Profile_Get_Tick_Rate (void)
 
unsigned int btQuickprofGetCurrentThreadIndex2 ()
 
void btEnterProfileZoneDefault (const char *name)
 
void btLeaveProfileZoneDefault ()
 
void btEnterProfileZone (const char *name)
 
void btLeaveProfileZone ()
 
btEnterProfileZoneFuncbtGetCurrentEnterProfileZoneFunc ()
 
btLeaveProfileZoneFuncbtGetCurrentLeaveProfileZoneFunc ()
 
void btSetCustomEnterProfileZoneFunc (btEnterProfileZoneFunc *enterFunc)
 
void btSetCustomLeaveProfileZoneFunc (btLeaveProfileZoneFunc *leaveFunc)
 

Variables

static btClock gProfileClock
 
CProfileNode gRoots [BT_QUICKPROF_MAX_THREAD_COUNT]
 
CProfileNodegCurrentNodes [BT_QUICKPROF_MAX_THREAD_COUNT]
 
static btEnterProfileZoneFuncbts_enterFunc = btEnterProfileZoneDefault
 
static btLeaveProfileZoneFuncbts_leaveFunc = btLeaveProfileZoneDefault
 

Macro Definition Documentation

#define BT_USE_WINDOWS_TIMERS

Definition at line 38 of file btQuickprof.cpp.

#define GetTickCount64   GetTickCount

Definition at line 50 of file btQuickprof.cpp.

#define mymin (   a,
 
)    (a > b ? a : b)

Definition at line 68 of file btQuickprof.cpp.

#define NOIME

Definition at line 42 of file btQuickprof.cpp.

#define NOMCX

Definition at line 41 of file btQuickprof.cpp.

#define NOWINRES

Definition at line 40 of file btQuickprof.cpp.

#define WIN32_LEAN_AND_MEAN

Definition at line 39 of file btQuickprof.cpp.

Function Documentation

void btEnterProfileZone ( const char *  name)

Definition at line 754 of file btQuickprof.cpp.

void btEnterProfileZoneDefault ( const char *  name)

Definition at line 730 of file btQuickprof.cpp.

btEnterProfileZoneFunc* btGetCurrentEnterProfileZoneFunc ( )

Definition at line 763 of file btQuickprof.cpp.

btLeaveProfileZoneFunc* btGetCurrentLeaveProfileZoneFunc ( )

Definition at line 767 of file btQuickprof.cpp.

void btLeaveProfileZone ( )

Definition at line 758 of file btQuickprof.cpp.

void btLeaveProfileZoneDefault ( )

Definition at line 733 of file btQuickprof.cpp.

unsigned int btQuickprofGetCurrentThreadIndex2 ( )

Definition at line 706 of file btQuickprof.cpp.

void btSetCustomEnterProfileZoneFunc ( btEnterProfileZoneFunc enterFunc)

Definition at line 773 of file btQuickprof.cpp.

void btSetCustomLeaveProfileZoneFunc ( btLeaveProfileZoneFunc leaveFunc)

Definition at line 777 of file btQuickprof.cpp.

float Profile_Get_Tick_Rate ( void  )
inline

Definition at line 293 of file btQuickprof.cpp.

void Profile_Get_Ticks ( unsigned long int *  ticks)
inline

Definition at line 288 of file btQuickprof.cpp.

Variable Documentation

Definition at line 751 of file btQuickprof.cpp.

Definition at line 752 of file btQuickprof.cpp.

Initial value:
=
{
&gRoots[ 0], &gRoots[ 1], &gRoots[ 2], &gRoots[ 3],
&gRoots[ 4], &gRoots[ 5], &gRoots[ 6], &gRoots[ 7],
&gRoots[ 8], &gRoots[ 9], &gRoots[10], &gRoots[11],
&gRoots[12], &gRoots[13], &gRoots[14], &gRoots[15],
&gRoots[16], &gRoots[17], &gRoots[18], &gRoots[19],
&gRoots[20], &gRoots[21], &gRoots[22], &gRoots[23],
&gRoots[24], &gRoots[25], &gRoots[26], &gRoots[27],
&gRoots[28], &gRoots[29], &gRoots[30], &gRoots[31],
&gRoots[32], &gRoots[33], &gRoots[34], &gRoots[35],
&gRoots[36], &gRoots[37], &gRoots[38], &gRoots[39],
&gRoots[40], &gRoots[41], &gRoots[42], &gRoots[43],
&gRoots[44], &gRoots[45], &gRoots[46], &gRoots[47],
&gRoots[48], &gRoots[49], &gRoots[50], &gRoots[51],
&gRoots[52], &gRoots[53], &gRoots[54], &gRoots[55],
&gRoots[56], &gRoots[57], &gRoots[58], &gRoots[59],
&gRoots[60], &gRoots[61], &gRoots[62], &gRoots[63],
}
CProfileNode gRoots[BT_QUICKPROF_MAX_THREAD_COUNT]

Definition at line 493 of file btQuickprof.cpp.

btClock gProfileClock
static

Definition at line 285 of file btQuickprof.cpp.

Initial value:
={
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),
CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL),CProfileNode("Root",NULL)
}
A node in the Profile Hierarchy Tree.
Definition: btQuickprof.h:94

Definition at line 473 of file btQuickprof.cpp.