mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Further split ProcessCallstackSampleImpl().
This commit is contained in:
parent
d88bf2c7a8
commit
3f1c540b3a
@ -6282,7 +6282,7 @@ void Worker::ProcessCallstack()
|
|||||||
m_pendingCallstackId = 0;
|
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();
|
const auto t = sd.time.Val();
|
||||||
if( td.samples.empty() )
|
if( td.samples.empty() )
|
||||||
@ -6317,8 +6317,14 @@ void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td )
|
|||||||
const auto& ip = cs[0];
|
const auto& ip = cs[0];
|
||||||
if( GetCanonicalPointer( ip ) >> 63 != 0 ) td.kernelSampleCnt++;
|
if( GetCanonicalPointer( ip ) >> 63 != 0 ) td.kernelSampleCnt++;
|
||||||
m_data.samplesCnt++;
|
m_data.samplesCnt++;
|
||||||
|
}
|
||||||
|
|
||||||
|
void Worker::ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td )
|
||||||
|
{
|
||||||
|
ProcessCallstackSampleInsertSample( sd, td );
|
||||||
|
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
|
const auto t = sd.time.Val();
|
||||||
if( t == 0 || !m_identifySamples )
|
if( t == 0 || !m_identifySamples )
|
||||||
{
|
{
|
||||||
ProcessCallstackSampleImplStats( sd, td );
|
ProcessCallstackSampleImplStats( sd, td );
|
||||||
|
@ -725,6 +725,7 @@ private:
|
|||||||
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 );
|
tracy_force_inline void ProcessCallstackSampleImpl( const SampleData& sd, ThreadData& td );
|
||||||
|
tracy_force_inline void ProcessCallstackSampleInsertSample( const SampleData& sd, ThreadData& td );
|
||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
tracy_force_inline void ProcessCallstackSampleImplStats( const SampleData& sd, ThreadData& td );
|
tracy_force_inline void ProcessCallstackSampleImplStats( const SampleData& sd, ThreadData& td );
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user