mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54:35 +00:00
No need for lean alloc srcloc zone begin messages.
This commit is contained in:
parent
062bb3044f
commit
7e6a41e647
@ -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:
|
||||||
|
@ -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
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user