diff --git a/ts/src/ProfilerTracy.cpp b/ts/src/ProfilerTracy.cpp index f9a6b16ac..93e0bc04d 100644 --- a/ts/src/ProfilerTracy.cpp +++ b/ts/src/ProfilerTracy.cpp @@ -1,3 +1,4 @@ +#include "version.h" #ifdef isCI #define ENABLE_API_PROFILER 0 // Disabled for release builds #define ENABLE_PLUGIN_LOGS 1 @@ -43,13 +44,13 @@ class RunningScopeTracy final : public RunningScope { #endif std::unique_ptr ProfilerTracy::enterScope(const ProfilerScope& info) const { +#if ENABLE_TRACY_PROFILING if (!tracy::s_token.ptr) { tracy::rpmalloc_thread_initialize(); tracy::s_token_detail = tracy::moodycamel::ProducerToken(tracy::s_queue); tracy::s_token = tracy::ProducerWrapper{ tracy::s_queue.get_explicit_producer(tracy::s_token_detail) }; } -#if ENABLE_TRACY_PROFILING return std::make_unique(info); #else return nullptr;