Skip to content

Commit

Permalink
Fixed CI Compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed Oct 3, 2019
1 parent d80df5d commit 0bb41e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ts/src/ProfilerTracy.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include "version.h"
#ifdef isCI
#define ENABLE_API_PROFILER 0 // Disabled for release builds
#define ENABLE_PLUGIN_LOGS 1
Expand Down Expand Up @@ -43,13 +44,13 @@ class RunningScopeTracy final : public RunningScope {
#endif

std::unique_ptr<RunningScope> 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<RunningScopeTracy>(info);
#else
return nullptr;
Expand Down

0 comments on commit 0bb41e2

Please sign in to comment.