mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Indicate whether client is running on apple shitware.
This commit is contained in:
parent
e05669a80f
commit
ab4e99229d
@ -1047,6 +1047,12 @@ void Profiler::Worker()
|
|||||||
uint8_t onDemand = 0;
|
uint8_t onDemand = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __APPLE__
|
||||||
|
uint8_t isApple = 1;
|
||||||
|
#else
|
||||||
|
uint8_t isApple = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
WelcomeMessage welcome;
|
WelcomeMessage welcome;
|
||||||
MemWrite( &welcome.timerMul, m_timerMul );
|
MemWrite( &welcome.timerMul, m_timerMul );
|
||||||
MemWrite( &welcome.initBegin, GetInitTime() );
|
MemWrite( &welcome.initBegin, GetInitTime() );
|
||||||
@ -1055,6 +1061,7 @@ void Profiler::Worker()
|
|||||||
MemWrite( &welcome.resolution, m_resolution );
|
MemWrite( &welcome.resolution, m_resolution );
|
||||||
MemWrite( &welcome.epoch, m_epoch );
|
MemWrite( &welcome.epoch, m_epoch );
|
||||||
MemWrite( &welcome.onDemand, onDemand );
|
MemWrite( &welcome.onDemand, onDemand );
|
||||||
|
MemWrite( &welcome.isApple, isApple );
|
||||||
memcpy( welcome.programName, procname, pnsz );
|
memcpy( welcome.programName, procname, pnsz );
|
||||||
memset( welcome.programName + pnsz, 0, WelcomeMessageProgramNameSize - pnsz );
|
memset( welcome.programName + pnsz, 0, WelcomeMessageProgramNameSize - pnsz );
|
||||||
memcpy( welcome.hostInfo, hostinfo, hisz );
|
memcpy( welcome.hostInfo, hostinfo, hisz );
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
namespace tracy
|
namespace tracy
|
||||||
{
|
{
|
||||||
|
|
||||||
enum : uint32_t { ProtocolVersion = 7 };
|
enum : uint32_t { ProtocolVersion = 8 };
|
||||||
|
|
||||||
using lz4sz_t = uint32_t;
|
using lz4sz_t = uint32_t;
|
||||||
|
|
||||||
@ -64,6 +64,7 @@ struct WelcomeMessage
|
|||||||
uint64_t resolution;
|
uint64_t resolution;
|
||||||
uint64_t epoch;
|
uint64_t epoch;
|
||||||
uint8_t onDemand;
|
uint8_t onDemand;
|
||||||
|
uint8_t isApple;
|
||||||
char programName[WelcomeMessageProgramNameSize];
|
char programName[WelcomeMessageProgramNameSize];
|
||||||
char hostInfo[WelcomeMessageHostInfoSize];
|
char hostInfo[WelcomeMessageHostInfoSize];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user