diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 42918cdf..f1163e4d 100755 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -37,6 +37,10 @@ static moodycamel::ProducerToken& GetToken() static std::atomic s_id( 0 ); +static inline uint64_t GetNewId() +{ + return s_id.fetch_add( 1, std::memory_order_relaxed ); +} #ifndef TRACY_DISABLE Profiler s_profiler; @@ -74,11 +78,6 @@ Profiler::~Profiler() s_instance = nullptr; } -uint64_t Profiler::GetNewId() -{ - return s_id.fetch_add( 1, std::memory_order_relaxed ); -} - uint64_t Profiler::ZoneBegin( QueueZoneBegin&& data ) { auto id = GetNewId(); diff --git a/client/TracyProfiler.hpp b/client/TracyProfiler.hpp index ffcaa845..40358796 100755 --- a/client/TracyProfiler.hpp +++ b/client/TracyProfiler.hpp @@ -32,7 +32,6 @@ public: Profiler(); ~Profiler(); - static uint64_t GetNewId(); static int64_t GetTime() { #if defined _MSC_VER || defined __CYGWIN__