Disable CProfileManager by default.

Use btSetCustomEnterProfileZoneFunc(CProfileManager::Start_Profile) and
btSetCustomLeaveProfileZoneFunc(CProfileManager::Stop_Profile) to get old behavior.
This commit is contained in:
Erwin Coumans
2018-07-30 12:07:32 +02:00
parent 2cab56d6ef
commit 5dd7a62397
2 changed files with 2 additions and 6 deletions

View File

@@ -729,11 +729,9 @@ unsigned int btQuickprofGetCurrentThreadIndex2() {
void btEnterProfileZoneDefault(const char* name)
{
CProfileManager::Start_Profile( name );
}
void btLeaveProfileZoneDefault()
{
CProfileManager::Stop_Profile();
}

View File

@@ -65,12 +65,10 @@ btLeaveProfileZoneFunc* btGetCurrentLeaveProfileZoneFunc();
void btSetCustomEnterProfileZoneFunc(btEnterProfileZoneFunc* enterFunc);
void btSetCustomLeaveProfileZoneFunc(btLeaveProfileZoneFunc* leaveFunc);
#ifndef BT_ENABLE_PROFILE
#ifndef BT_NO_PROFILE // FIX redefinition
//To disable built-in profiling, please comment out next line
#ifndef BT_NO_PROFILE
#define BT_NO_PROFILE 1
//#define BT_NO_PROFILE 1
#endif //BT_NO_PROFILE
#endif //BT_ENABLE_PROFILE
const unsigned int BT_QUICKPROF_MAX_THREAD_COUNT = 64;