Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2021-10-22 23:25:09 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-10-22 23:25:09 +0300
commit2b9265cc40cdbbf0dc5203b2f8edff037b0bd5d7 (patch)
treed821fc92d2a204cb34f917aa575ba43bd335a22f /common
parentb4cfb1f2d56e88ea52f4fc72af52a53f19df9635 (diff)
Move symbol resolution to a separate thread.
Diffstat (limited to 'common')
-rw-r--r--common/TracyProtocol.hpp2
-rw-r--r--common/TracyQueue.hpp14
2 files changed, 9 insertions, 7 deletions
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