mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Send timer resolution to server.
This commit is contained in:
parent
6a2cb2c14e
commit
efda50acb1
@ -163,6 +163,7 @@ void Profiler::Worker()
|
||||
welcome.timerMul = m_timerMul;
|
||||
welcome.timeBegin = m_timeBegin;
|
||||
welcome.delay = m_delay;
|
||||
welcome.resolution = m_resolution;
|
||||
|
||||
m_sock->Send( &welcome, sizeof( welcome ) );
|
||||
}
|
||||
|
@ -31,6 +31,7 @@ struct WelcomeMessage
|
||||
double timerMul;
|
||||
uint64_t timeBegin;
|
||||
uint64_t delay;
|
||||
uint64_t resolution;
|
||||
};
|
||||
#pragma pack()
|
||||
|
||||
|
@ -93,6 +93,7 @@ void View::Worker()
|
||||
m_timerMul = welcome.timerMul;
|
||||
m_frames.push_back( welcome.timeBegin * m_timerMul );
|
||||
m_delay = welcome.delay * m_timerMul;
|
||||
m_resolution = welcome.resolution * m_timerMul;
|
||||
}
|
||||
|
||||
m_hasData.store( true, std::memory_order_release );
|
||||
|
@ -133,6 +133,7 @@ private:
|
||||
int64_t m_zvEndNext;
|
||||
|
||||
uint64_t m_delay;
|
||||
uint64_t m_resolution;
|
||||
double m_timerMul;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user