From d6c0720f8a188a60fe4a7d9cad58b06aeb42ddc9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 25 Feb 2020 23:46:16 +0100 Subject: [PATCH] Save/load sampling period. --- server/TracyWorker.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index a4b48742..71ac3756 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -258,6 +258,7 @@ Worker::Worker( const std::string& program, const std::vector= FileVersion( 0, 6, 5 ) ) + { + f.Read( m_samplingPeriod ); + } + else + { + m_samplingPeriod = 0; + } + uint64_t sz; { f.Read( sz ); @@ -5515,6 +5525,7 @@ void Worker::Write( FileWrite& f ) f.Write( &m_data.lastTime, sizeof( m_data.lastTime ) ); f.Write( &m_data.frameOffset, sizeof( m_data.frameOffset ) ); f.Write( &m_pid, sizeof( m_pid ) ); + f.Write( &m_samplingPeriod, sizeof( m_samplingPeriod ) ); uint64_t sz = m_captureName.size(); f.Write( &sz, sizeof( sz ) );