mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
No need to pass time and callstack.
This commit is contained in:
parent
06c1bb4e59
commit
00834ed32b
@ -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 );
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user