No need to pass time and callstack.

This commit is contained in:
Bartosz Taudul 2021-11-13 02:26:11 +01:00
parent 06c1bb4e59
commit 00834ed32b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 7 additions and 7 deletions

View File

@ -6141,10 +6141,10 @@ void Worker::ProcessCallstack()
m_pendingCallstackId = 0; 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 ); const auto t = sd.time.Val();
assert( sd.callstack.Val() == callstack ); const auto callstack = sd.callstack.Val();
m_data.samplesCnt++; m_data.samplesCnt++;
const auto& cs = GetCallstack( callstack ); const auto& cs = GetCallstack( callstack );
@ -6311,19 +6311,19 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
} }
sd.callstack.SetVal( idx ); sd.callstack.SetVal( idx );
ProcessCallstackSampleImpl( sd, td, pendingTime, idx ); ProcessCallstackSampleImpl( sd, td );
td.pendingSample.time.Clear(); td.pendingSample.time.Clear();
} }
else else
{ {
ProcessCallstackSampleImpl( td.pendingSample, td, pendingTime, td.pendingSample.callstack.Val() ); ProcessCallstackSampleImpl( td.pendingSample, td );
td.pendingSample = sd; td.pendingSample = sd;
} }
} }
} }
else else
{ {
ProcessCallstackSampleImpl( sd, td, t, callstack ); ProcessCallstackSampleImpl( sd, td );
} }
} }

View File

@ -718,7 +718,7 @@ private:
tracy_force_inline void ProcessGpuZoneBeginImplCommon( GpuEvent* zone, const QueueGpuZoneBeginLean& ev, bool serial ); 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* 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 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 ZoneStackFailure( uint64_t thread, const ZoneEvent* ev );
void ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev ); void ZoneDoubleEndFailure( uint64_t thread, const ZoneEvent* ev );