Send sampling period in welcome message.

This commit is contained in:
Bartosz Taudul 2020-02-25 23:12:31 +01:00
parent 2b7f5091f1
commit c5b2d14f8c
2 changed files with 2 additions and 0 deletions

View File

@ -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 );

View File

@ -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];