1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Report CPU architecture in welcome message.

This commit is contained in:
Bartosz Taudul
2020-03-25 21:28:02 +01:00
parent 5a3dedea97
commit add5b29d03
2 changed files with 24 additions and 0 deletions
+11
View File
@@ -63,6 +63,16 @@ struct ServerQueryPacket
enum { ServerQueryPacketSize = sizeof( ServerQueryPacket ) };
enum CpuArchitecture : uint8_t
{
CpuArchUnknown,
CpuArchX86,
CpuArchX64,
CpuArchArm32,
CpuArchArm64
};
struct WelcomeMessage
{
double timerMul;
@@ -75,6 +85,7 @@ struct WelcomeMessage
int64_t samplingPeriod;
uint8_t onDemand;
uint8_t isApple;
uint8_t cpuArch;
char programName[WelcomeMessageProgramNameSize];
char hostInfo[WelcomeMessageHostInfoSize];
};