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