From 2b9265cc40cdbbf0dc5203b2f8edff037b0bd5d7 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 22 Oct 2021 22:25:09 +0200 Subject: Move symbol resolution to a separate thread. --- common/TracyProtocol.hpp | 2 +- common/TracyQueue.hpp | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'common') diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index abc188b7..5497c228 100644 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -9,7 +9,7 @@ namespace tracy constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; } -enum : uint32_t { ProtocolVersion = 50 }; +enum : uint32_t { ProtocolVersion = 51 }; enum : uint16_t { BroadcastVersion = 2 }; using lz4sz_t = uint32_t; diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index 25643871..f1db518b 100644 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -55,6 +55,10 @@ enum class QueueType : uint8_t ThreadWakeup, GpuTime, GpuContextName, + CallstackFrameSize, + SymbolInformation, + CodeInformation, + ExternalNameMetadata, Terminate, KeepAlive, ThreadContext, @@ -76,10 +80,7 @@ enum class QueueType : uint8_t MessageLiteralCallstack, MessageLiteralColorCallstack, GpuNewContext, - CallstackFrameSize, CallstackFrame, - SymbolInformation, - CodeInformation, SysTimeReport, TidToPid, HwSampleCpuCycle, @@ -746,6 +747,10 @@ static constexpr size_t QueueDataSize[] = { sizeof( QueueHeader ) + sizeof( QueueThreadWakeup ), sizeof( QueueHeader ) + sizeof( QueueGpuTime ), sizeof( QueueHeader ) + sizeof( QueueGpuContextName ), + sizeof( QueueHeader ) + sizeof( QueueCallstackFrameSize ), + sizeof( QueueHeader ) + sizeof( QueueSymbolInformation ), + sizeof( QueueHeader ) + sizeof( QueueCodeInformation ), + sizeof( QueueHeader), // ExternalNameMetadata - not for wire transfer // above items must be first sizeof( QueueHeader ), // terminate sizeof( QueueHeader ), // keep alive @@ -768,10 +773,7 @@ static constexpr size_t QueueDataSize[] = { sizeof( QueueHeader ) + sizeof( QueueMessageLiteral ), // callstack sizeof( QueueHeader ) + sizeof( QueueMessageColorLiteral ), // callstack sizeof( QueueHeader ) + sizeof( QueueGpuNewContext ), - sizeof( QueueHeader ) + sizeof( QueueCallstackFrameSize ), sizeof( QueueHeader ) + sizeof( QueueCallstackFrame ), - sizeof( QueueHeader ) + sizeof( QueueSymbolInformation ), - sizeof( QueueHeader ) + sizeof( QueueCodeInformation ), sizeof( QueueHeader ) + sizeof( QueueSysTime ), sizeof( QueueHeader ) + sizeof( QueueTidToPid ), sizeof( QueueHeader ) + sizeof( QueueHwSample ), // cpu cycle -- cgit v1.2.3