1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 04:23:51 +00:00

Store thread compression layout in trace dump.

This commit is contained in:
Bartosz Taudul 2019-02-16 22:48:29 +01:00
parent d030674b83
commit 9ee494c0f4
2 changed files with 9 additions and 2 deletions

View File

@ -7,7 +7,7 @@ namespace Version
{
enum { Major = 0 };
enum { Minor = 4 };
enum { Patch = 3 };
enum { Patch = 4 };
}
}

View File

@ -449,7 +449,13 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
}
}
if( fileVer >= FileVersion( 0, 3, 201 ) )
if( fileVer >= FileVersion( 0, 4, 4 ) )
{
f.Read( sz );
m_data.threadExpand.reserve_and_use( sz );
f.Read( m_data.threadExpand.data(), sizeof( uint64_t ) * sz );
}
else if( fileVer >= FileVersion( 0, 3, 201 ) )
{
f.Read( sz );
m_data.threadExpand.reserve( sz );
@ -3529,6 +3535,7 @@ void Worker::Write( FileWrite& f )
sz = m_data.threadExpand.size();
f.Write( &sz, sizeof( sz ) );
f.Write( m_data.threadExpand.data(), sz * sizeof( uint64_t ) );
sz = m_data.sourceLocation.size();
f.Write( &sz, sizeof( sz ) );