1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Track trace version in worker.

This commit is contained in:
Bartosz Taudul
2018-07-29 15:33:48 +02:00
parent 13509c14f1
commit 9f13475b52
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -199,6 +199,7 @@ Worker::Worker( const char* addr )
, m_pendingThreads( 0 )
, m_pendingSourceLocation( 0 )
, m_pendingCallstackFrames( 0 )
, m_traceVersion( CurrentVersion )
{
m_data.sourceLocationExpand.push_back( 0 );
m_data.threadExpand.push_back( 0 );
@@ -244,6 +245,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
static_assert( sizeof( m_delay ) == sizeof( hdr ), "Size mismatch" );
memcpy( &m_delay, hdr, sizeof( m_delay ) );
}
m_traceVersion = fileVer;
if( fileVer <= FileVersion( 0, 3, 1 ) )
{