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-12-04 16:50:25 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-12-04 16:50:25 +0300
commit20f8c8b8a45616ae1cadeb10625f37ca4cacd47c (patch)
tree4fa4455bf5d2556190f4a210e3774f75e1b69b44 /common
parent2008c889835ff42049b5d375c3b81ce9ac42353b (diff)
Add IdentifySamples flag to the protocol.
On Windows there is no way to distinguish callstack data coming from random sampling and from context switches. Each callstack timestamp has to be matched against the context switch data in order to decide its origin. This is obviously non-trivial. On some other platforms, the origin information may be available right away, in which case the process of matching against the context switch data, which possibly includes postponing callstacks for processing in the future, may be completely omitted.
Diffstat (limited to 'common')
-rw-r--r--common/TracyProtocol.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp
index e7ab86ad..1cd46346 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 = 53 };
+enum : uint32_t { ProtocolVersion = 54 };
enum : uint16_t { BroadcastVersion = 2 };
using lz4sz_t = uint32_t;
@@ -86,6 +86,7 @@ struct WelcomeFlag
IsApple = 1 << 1,
CodeTransfer = 1 << 2,
CombineSamples = 1 << 3,
+ IdentifySamples = 1 << 4,
};
};