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:
@@ -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 ) )
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user