1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Don't send thread id for hw samples.

This commit is contained in:
Bartosz Taudul 2021-05-19 22:52:13 +02:00
parent 64ed3d057d
commit 101cdd9b4b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 1 additions and 5 deletions

View File

@ -897,9 +897,7 @@ static void SetupSampling( int64_t& samplingPeriod )
uint32_t tid;
s_ring[i].Read( &ip, offset, sizeof( uint64_t ) );
offset += sizeof( uint64_t ) + sizeof( uint32_t );
s_ring[i].Read( &tid, offset, sizeof( uint32_t ) );
offset += sizeof( uint32_t );
offset += sizeof( uint64_t ) + sizeof( uint32_t ) + sizeof( uint32_t );
s_ring[i].Read( &t0, offset, sizeof( uint64_t ) );
#if defined TRACY_HW_TIMER && ( defined __i386 || defined _M_IX86 || defined __x86_64__ || defined _M_X64 )
@ -922,7 +920,6 @@ static void SetupSampling( int64_t& samplingPeriod )
TracyLfqPrepare( type );
MemWrite( &item->hwSample.ip, ip );
MemWrite( &item->hwSample.thread, (uint64_t)tid );
MemWrite( &item->hwSample.time, t0 );
TracyLfqCommit;
}

View File

@ -478,7 +478,6 @@ struct QueueTidToPid
struct QueueHwSample
{
int64_t time;
uint64_t thread;
uint64_t ip;
};