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-06-15 02:26:50 +0300
committerBartosz Taudul <wolf@nereid.pl>2021-06-15 02:26:50 +0300
commit06dcdd342fed710a72fe1866fb1b734ad5322a21 (patch)
tree5f5e912e8ad9bf98b60ceacb7c9c03572b191d11 /common
parent004681b02bdc84a354e460663fb1fbbef3b4b5d4 (diff)
Combine flags in welcome message.
Diffstat (limited to 'common')
-rw-r--r--common/TracyProtocol.hpp16
1 files changed, 12 insertions, 4 deletions
diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp
index 3cc90ccf..113ac2a5 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 = 47 };
+enum : uint32_t { ProtocolVersion = 48 };
enum : uint16_t { BroadcastVersion = 2 };
using lz4sz_t = uint32_t;
@@ -77,6 +77,16 @@ enum CpuArchitecture : uint8_t
};
+struct WelcomeFlag
+{
+ enum _t : uint8_t
+ {
+ OnDemand = 1 << 0,
+ IsApple = 1 << 1,
+ CodeTransfer = 1 << 2,
+ };
+};
+
struct WelcomeMessage
{
double timerMul;
@@ -88,10 +98,8 @@ struct WelcomeMessage
uint64_t exectime;
uint64_t pid;
int64_t samplingPeriod;
- uint8_t onDemand;
- uint8_t isApple;
+ uint8_t flags;
uint8_t cpuArch;
- uint8_t codeTransfer;
char cpuManufacturer[12];
uint32_t cpuId;
char programName[WelcomeMessageProgramNameSize];