diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 5fa13af4..df6e4b5b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -6283,7 +6283,7 @@ void Worker::ReconstructContextSwitchUsage() m_data.ctxUsageReady = true; } -void Worker::UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool canPostpone ) +bool Worker::UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool canPostpone ) { const auto& cs = GetCallstack( callstack ); const auto cssz = cs.size(); @@ -6306,7 +6306,7 @@ void Worker::UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool ca it->second += count; } } - return; + return false; } else { @@ -6325,6 +6325,7 @@ void Worker::UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool ca } UpdateSampleStatisticsImpl( frames, cssz, count, cs ); + return true; } void Worker::UpdateSampleStatisticsPostponed( decltype(Worker::DataBlock::postponedSamples.begin())& it ) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index a49a20a8..a6f6e844 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -730,7 +730,7 @@ private: #ifndef TRACY_NO_STATISTICS void ReconstructContextSwitchUsage(); - void UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool canPostpone ); + bool UpdateSampleStatistics( uint32_t callstack, uint32_t count, bool canPostpone ); void UpdateSampleStatisticsPostponed( decltype(Worker::DataBlock::postponedSamples.begin())& it ); void UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint16_t framesCount, uint32_t count, const VarArray& cs ); #endif