diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 88ec5d75..6fb54491 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -763,18 +763,6 @@ const Worker::SourceLocationZones& Worker::GetZonesForSourceLocation( int32_t sr } #endif -uint16_t Worker::CompressThread( uint64_t thread ) -{ - if( m_data.threadLast.first == thread ) - { - return m_data.threadLast.second; - } - else - { - return CompressThreadReal( thread ); - } -} - uint16_t Worker::CompressThreadReal( uint64_t thread ) { auto it = m_data.threadMap.find( thread ); diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 02f10ac6..f70517fa 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -162,7 +162,11 @@ public: bool AreSourceLocationZonesReady() const { return m_data.sourceLocationZonesReady; } #endif - tracy_force_inline uint16_t CompressThread( uint64_t thread ); + tracy_force_inline uint16_t CompressThread( uint64_t thread ) + { + if( m_data.threadLast.first == thread ) return m_data.threadLast.second; + return CompressThreadReal( thread ); + } tracy_force_inline uint64_t DecompressThread( uint16_t thread ) const { assert( thread < m_data.threadExpand.size() ); return m_data.threadExpand[thread]; } NonRecursiveBenaphore& GetMbpsDataLock() { return m_mbpsData.lock; }