5 #include <utils/Logger.h> 6 #include <HyperionConfig.h> 8 #ifndef ENABLE_PROFILER 9 #error "Profiler is not for productive code, enable it via cmake or remove header include" 13 #define PROFILER_BLOCK_EXECUTION_TIME Profiler DEBUG_PROFILE__BLOCK__EXECUTION__TIME_messure_object(__FILE__, _FUNCNAME_, __LINE__ ); 14 #define PROFILER_TIMER_START(stopWatchName) Profiler::TimerStart(stopWatchName, __FILE__, _FUNCNAME_, __LINE__); 15 #define PROFILER_TIMER_GET(stopWatchName) Profiler::TimerGetTime(stopWatchName, __FILE__, _FUNCNAME_, __LINE__); 16 #define PROFILER_TIMER_GET_IF(condition, stopWatchName) { if (condition) {Profiler::TimerGetTime(stopWatchName, __FILE__, _FUNCNAME_, __LINE__);} } 22 Profiler(
const char* sourceFile,
const char* func,
unsigned int line);
25 static void TimerStart(
const QString stopWatchName,
const char* sourceFile,
const char* func,
unsigned int line);
26 static void TimerGetTime(
const QString stopWatchName,
const char* sourceFile,
const char* func,
unsigned int line);
29 static void initLogger();
35 unsigned int _blockId;
Definition: Profiler.h:19