mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Send sampling period in welcome message.
This commit is contained in:
parent
2b7f5091f1
commit
c5b2d14f8c
@ -1196,6 +1196,7 @@ void Profiler::Worker()
|
||||
MemWrite( &welcome.resolution, m_resolution );
|
||||
MemWrite( &welcome.epoch, m_epoch );
|
||||
MemWrite( &welcome.pid, pid );
|
||||
MemWrite( &welcome.samplingPeriod, m_samplingPeriod );
|
||||
MemWrite( &welcome.onDemand, onDemand );
|
||||
MemWrite( &welcome.isApple, isApple );
|
||||
memcpy( welcome.programName, procname, pnsz );
|
||||
|
@ -68,6 +68,7 @@ struct WelcomeMessage
|
||||
uint64_t resolution;
|
||||
uint64_t epoch;
|
||||
uint64_t pid;
|
||||
int64_t samplingPeriod;
|
||||
uint8_t onDemand;
|
||||
uint8_t isApple;
|
||||
char programName[WelcomeMessageProgramNameSize];
|
||||
|
Loading…
Reference in New Issue
Block a user