Further split ProcessCallstackSampleImpl().

This commit is contained in:
Bartosz Taudul 2021-12-21 14:18:14 +01:00
parent d88bf2c7a8
commit 3f1c540b3a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 8 additions and 1 deletions

View File

@ -6282,7 +6282,7 @@ void Worker::ProcessCallstack()
m_pendingCallstackId = 0;
}
void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td )
void Worker::ProcessCallstackSampleInsertSample( const SampleData& sd, ThreadData& td )
{
const auto t = sd.time.Val();
if( td.samples.empty() )
@ -6317,8 +6317,14 @@ void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td )
const auto& ip = cs[0];
if( GetCanonicalPointer( ip ) >> 63 != 0 ) td.kernelSampleCnt++;
m_data.samplesCnt++;
}
void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td )
{
ProcessCallstackSampleInsertSample( sd, td );
#ifndef TRACY_NO_STATISTICS
const auto t = sd.time.Val();
if( t == 0 || !m_identifySamples )
{
ProcessCallstackSampleImplStats( sd, td );

View File

@ -725,6 +725,7 @@ private:
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 );
tracy_force_inline void ProcessCallstackSampleInsertSample( const SampleData& sd, ThreadData& td );
#ifndef TRACY_NO_STATISTICS
tracy_force_inline void ProcessCallstackSampleImplStats( const SampleData& sd, ThreadData& td );
#endif