Add no-op dispatch of HW samples.

This commit is contained in:
Bartosz Taudul 2021-05-19 02:31:20 +02:00
parent 7794443453
commit 64ed3d057d
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 16 additions and 0 deletions

View File

@ -4461,6 +4461,12 @@ bool Worker::Process( const QueueItem& ev )
case QueueType::TidToPid: case QueueType::TidToPid:
ProcessTidToPid( ev.tidToPid ); ProcessTidToPid( ev.tidToPid );
break; break;
case QueueType::HwSampleCpuCycle:
ProcessHwSampleCpuCycle( ev.hwSample );
break;
case QueueType::HwSampleInstructionRetired:
ProcessHwSampleInstructionRetired( ev.hwSample );
break;
case QueueType::ParamSetup: case QueueType::ParamSetup:
ProcessParamSetup( ev.paramSetup ); ProcessParamSetup( ev.paramSetup );
break; break;
@ -6268,6 +6274,14 @@ void Worker::ProcessTidToPid( const QueueTidToPid& ev )
if( m_data.tidToPid.find( ev.tid ) == m_data.tidToPid.end() ) m_data.tidToPid.emplace( ev.tid, ev.pid ); if( m_data.tidToPid.find( ev.tid ) == m_data.tidToPid.end() ) m_data.tidToPid.emplace( ev.tid, ev.pid );
} }
void Worker::ProcessHwSampleCpuCycle( const QueueHwSample& ev )
{
}
void Worker::ProcessHwSampleInstructionRetired( const QueueHwSample& ev )
{
}
void Worker::ProcessParamSetup( const QueueParamSetup& ev ) void Worker::ProcessParamSetup( const QueueParamSetup& ev )
{ {
CheckString( ev.name ); CheckString( ev.name );

View File

@ -679,6 +679,8 @@ private:
tracy_force_inline void ProcessContextSwitch( const QueueContextSwitch& ev ); tracy_force_inline void ProcessContextSwitch( const QueueContextSwitch& ev );
tracy_force_inline void ProcessThreadWakeup( const QueueThreadWakeup& ev ); tracy_force_inline void ProcessThreadWakeup( const QueueThreadWakeup& ev );
tracy_force_inline void ProcessTidToPid( const QueueTidToPid& ev ); tracy_force_inline void ProcessTidToPid( const QueueTidToPid& ev );
tracy_force_inline void ProcessHwSampleCpuCycle( const QueueHwSample& ev );
tracy_force_inline void ProcessHwSampleInstructionRetired( const QueueHwSample& ev );
tracy_force_inline void ProcessParamSetup( const QueueParamSetup& ev ); tracy_force_inline void ProcessParamSetup( const QueueParamSetup& ev );
tracy_force_inline void ProcessCpuTopology( const QueueCpuTopology& ev ); tracy_force_inline void ProcessCpuTopology( const QueueCpuTopology& ev );
tracy_force_inline void ProcessMemNamePayload( const QueueMemNamePayload& ev ); tracy_force_inline void ProcessMemNamePayload( const QueueMemNamePayload& ev );