diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2021-12-21 16:05:07 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2021-12-21 16:05:07 +0300 |
commit | d88bf2c7a85fb1d8c72d268c8d0a8f977733776c (patch) | |
tree | 04c9a621a46823dcfa43052626f4de8cab9197e2 /common | |
parent | 0ba2c0a86ea3c0620312987b5635efaaf9c84c26 (diff) |
Separate message type for context switch callstack samples.
Diffstat (limited to 'common')
-rw-r--r-- | common/TracyProtocol.hpp | 2 | ||||
-rw-r--r-- | common/TracyQueue.hpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index 1cd46346..a647b031 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 = 54 }; +enum : uint32_t { ProtocolVersion = 55 }; enum : uint16_t { BroadcastVersion = 2 }; using lz4sz_t = uint32_t; diff --git a/common/TracyQueue.hpp b/common/TracyQueue.hpp index 27cb5501..4deb1910 100644 --- a/common/TracyQueue.hpp +++ b/common/TracyQueue.hpp @@ -21,6 +21,7 @@ enum class QueueType : uint8_t Callstack, CallstackAlloc, CallstackSample, + CallstackSampleContextSwitch, FrameImage, ZoneBegin, ZoneBeginCallstack, @@ -741,6 +742,7 @@ static constexpr size_t QueueDataSize[] = { sizeof( QueueHeader ), // callstack sizeof( QueueHeader ), // callstack alloc sizeof( QueueHeader ) + sizeof( QueueCallstackSample ), + sizeof( QueueHeader ) + sizeof( QueueCallstackSample ), // context switch sizeof( QueueHeader ) + sizeof( QueueFrameImage ), sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), sizeof( QueueHeader ) + sizeof( QueueZoneBegin ), // callstack |