Disable CProfileManager by default.
Use btSetCustomEnterProfileZoneFunc(CProfileManager::Start_Profile) and btSetCustomLeaveProfileZoneFunc(CProfileManager::Stop_Profile) to get old behavior.
This commit is contained in:
@@ -729,11 +729,9 @@ unsigned int btQuickprofGetCurrentThreadIndex2() {
|
|||||||
|
|
||||||
void btEnterProfileZoneDefault(const char* name)
|
void btEnterProfileZoneDefault(const char* name)
|
||||||
{
|
{
|
||||||
CProfileManager::Start_Profile( name );
|
|
||||||
}
|
}
|
||||||
void btLeaveProfileZoneDefault()
|
void btLeaveProfileZoneDefault()
|
||||||
{
|
{
|
||||||
CProfileManager::Stop_Profile();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -65,12 +65,10 @@ btLeaveProfileZoneFunc* btGetCurrentLeaveProfileZoneFunc();
|
|||||||
void btSetCustomEnterProfileZoneFunc(btEnterProfileZoneFunc* enterFunc);
|
void btSetCustomEnterProfileZoneFunc(btEnterProfileZoneFunc* enterFunc);
|
||||||
void btSetCustomLeaveProfileZoneFunc(btLeaveProfileZoneFunc* leaveFunc);
|
void btSetCustomLeaveProfileZoneFunc(btLeaveProfileZoneFunc* leaveFunc);
|
||||||
|
|
||||||
#ifndef BT_ENABLE_PROFILE
|
#ifndef BT_NO_PROFILE // FIX redefinition
|
||||||
//To disable built-in profiling, please comment out next line
|
//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_NO_PROFILE
|
||||||
#endif //BT_ENABLE_PROFILE
|
|
||||||
|
|
||||||
const unsigned int BT_QUICKPROF_MAX_THREAD_COUNT = 64;
|
const unsigned int BT_QUICKPROF_MAX_THREAD_COUNT = 64;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user