41 #ifndef __ARTOOLKITPLUS_PROFILER_HEADERFILE__ 42 #define __ARTOOLKITPLUS_PROFILER_HEADERFILE__ 45 #if defined(WIN32) || defined(_WIN32_WCE) 46 # define _ARTKP_IS_WINDOWS_ 50 #ifdef _ARTKP_IS_WINDOWS_ 80 #ifdef _ARTKP_IS_WINDOWS_ 81 LARGE_INTEGER secBegin, secEnd, sum;
98 void writeReport(
const char* nFileName,
unsigned int nNumRuns=1)
const;
117 #ifdef _USE_PROFILING_ 118 #define PROFILE_BEGINSEC(obj, mes) obj.beginSection(obj._##mes); 119 #define PROFILE_ENDSEC(obj, mes) obj.endSection(obj._##mes); 121 #define PROFILEPTR_BEGINSEC(obj, mes) if(obj) obj->beginSection(obj->_##mes); 122 #define PROFILEPTR_ENDSEC(obj, mes) if(obj) obj->endSection(obj->_##mes); 124 #define PROFILE_BEGINSEC(obj, mes); 125 #define PROFILE_ENDSEC(obj, mes); 127 #define PROFILEPTR_BEGINSEC(obj, mes) 128 #define PROFILEPTR_ENDSEC(obj, mes) 129 #endif //_USE_PROFILING_ 132 #endif //__ARTOOLKITPLUS_PROFILER_HEADERFILE__