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:
parent
d030674b83
commit
9ee494c0f4
@ -7,7 +7,7 @@ namespace Version
|
||||
{
|
||||
enum { Major = 0 };
|
||||
enum { Minor = 4 };
|
||||
enum { Patch = 3 };
|
||||
enum { Patch = 4 };
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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 ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user