diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 5d66b866..faaa9533 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -6141,10 +6141,10 @@ void Worker::ProcessCallstack() m_pendingCallstackId = 0; } -void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td, int64_t t, uint32_t callstack ) +void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td ) { - assert( sd.time.Val() == t ); - assert( sd.callstack.Val() == callstack ); + const auto t = sd.time.Val(); + const auto callstack = sd.callstack.Val(); m_data.samplesCnt++; const auto& cs = GetCallstack( callstack ); @@ -6311,19 +6311,19 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev ) } sd.callstack.SetVal( idx ); - ProcessCallstackSampleImpl( sd, td, pendingTime, idx ); + ProcessCallstackSampleImpl( sd, td ); td.pendingSample.time.Clear(); } else { - ProcessCallstackSampleImpl( td.pendingSample, td, pendingTime, td.pendingSample.callstack.Val() ); + ProcessCallstackSampleImpl( td.pendingSample, td ); td.pendingSample = sd; } } } else { - ProcessCallstackSampleImpl( sd, td, t, callstack ); + ProcessCallstackSampleImpl( sd, td ); } } diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 9fd4608e..269f532d 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -718,7 +718,7 @@ private: tracy_force_inline void ProcessGpuZoneBeginImplCommon( GpuEvent* zone, const QueueGpuZoneBeginLean& ev, bool serial ); tracy_force_inline MemEvent* ProcessMemAllocImpl( uint64_t memname, MemData& memdata, const QueueMemAlloc& ev ); tracy_force_inline MemEvent* ProcessMemFreeImpl( uint64_t memname, MemData& memdata, const QueueMemFree& ev ); - tracy_force_inline void ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td, int64_t t, uint32_t callstack ); + tracy_force_inline void ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td ); void ZoneStackFailure( uint64_t thread, const ZoneEvent* ev ); void ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev );