From efda50acb1640e63c97e7332e1b05b0e43b24929 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Sep 2017 18:32:07 +0200 Subject: [PATCH] Send timer resolution to server. --- client/TracyProfiler.cpp | 1 + common/TracyProtocol.hpp | 1 + server/TracyView.cpp | 1 + server/TracyView.hpp | 1 + 4 files changed, 4 insertions(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 74a90d02..ae2b5626 100755 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -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 ) ); } diff --git a/common/TracyProtocol.hpp b/common/TracyProtocol.hpp index 54d16ef4..80ae8885 100755 --- a/common/TracyProtocol.hpp +++ b/common/TracyProtocol.hpp @@ -31,6 +31,7 @@ struct WelcomeMessage double timerMul; uint64_t timeBegin; uint64_t delay; + uint64_t resolution; }; #pragma pack() diff --git a/server/TracyView.cpp b/server/TracyView.cpp index f8fef203..b8edd925 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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 ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index be1527ae..e29f45ee 100755 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -133,6 +133,7 @@ private: int64_t m_zvEndNext; uint64_t m_delay; + uint64_t m_resolution; double m_timerMul; };