No need for lean alloc srcloc zone begin messages.

This commit is contained in:
Bartosz Taudul 2020-07-26 14:35:04 +02:00
parent 062bb3044f
commit 7e6a41e647
3 changed files with 4 additions and 10 deletions

View File

@ -1870,8 +1870,6 @@ Profiler::DequeueStatus Profiler::Dequeue( moodycamel::ConsumerToken& token )
ptr = MemRead<uint64_t>( &item->zoneBegin.srcloc ); ptr = MemRead<uint64_t>( &item->zoneBegin.srcloc );
SendSourceLocationPayload( ptr ); SendSourceLocationPayload( ptr );
tracy_free( (void*)ptr ); tracy_free( (void*)ptr );
idx++;
MemWrite( &item->hdr.idx, idx );
break; break;
} }
case QueueType::Callstack: case QueueType::Callstack:

View File

@ -16,9 +16,7 @@ enum class QueueType : uint8_t
MessageColorCallstack, MessageColorCallstack,
MessageAppInfo, MessageAppInfo,
ZoneBeginAllocSrcLoc, ZoneBeginAllocSrcLoc,
ZoneBeginAllocSrcLocLean,
ZoneBeginAllocSrcLocCallstack, ZoneBeginAllocSrcLocCallstack,
ZoneBeginAllocSrcLocCallstackLean,
CallstackMemory, CallstackMemory,
Callstack, Callstack,
CallstackAlloc, CallstackAlloc,
@ -541,10 +539,8 @@ static constexpr size_t QueueDataSize[] = {
sizeof( QueueHeader ) + sizeof( QueueMessage ), // callstack sizeof( QueueHeader ) + sizeof( QueueMessage ), // callstack
sizeof( QueueHeader ) + sizeof( QueueMessageColor ), // callstack sizeof( QueueHeader ) + sizeof( QueueMessageColor ), // callstack
sizeof( QueueHeader ) + sizeof( QueueMessage ), // app info sizeof( QueueHeader ) + sizeof( QueueMessage ), // app info
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // allocated source location, not for network transfer sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // allocated source location
sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // lean allocated source location sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // allocated source location, callstack
sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // allocated source location, callstack, not for network transfer
sizeof( QueueHeader ) + sizeof( QueueZoneBeginLean ), // lean allocated source location, callstack
sizeof( QueueHeader ), // callstack memory sizeof( QueueHeader ), // callstack memory
sizeof( QueueHeader ), // callstack sizeof( QueueHeader ), // callstack
sizeof( QueueHeader ), // callstack alloc sizeof( QueueHeader ), // callstack alloc

View File

@ -3884,10 +3884,10 @@ bool Worker::Process( const QueueItem& ev )
case QueueType::ZoneBeginCallstack: case QueueType::ZoneBeginCallstack:
ProcessZoneBeginCallstack( ev.zoneBegin ); ProcessZoneBeginCallstack( ev.zoneBegin );
break; break;
case QueueType::ZoneBeginAllocSrcLocLean: case QueueType::ZoneBeginAllocSrcLoc:
ProcessZoneBeginAllocSrcLoc( ev.zoneBeginLean ); ProcessZoneBeginAllocSrcLoc( ev.zoneBeginLean );
break; break;
case QueueType::ZoneBeginAllocSrcLocCallstackLean: case QueueType::ZoneBeginAllocSrcLocCallstack:
ProcessZoneBeginAllocSrcLocCallstack( ev.zoneBeginLean ); ProcessZoneBeginAllocSrcLocCallstack( ev.zoneBeginLean );
break; break;
case QueueType::ZoneEnd: case QueueType::ZoneEnd: