mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Properly restore threadMap.
This fixes thread ids returned by CompressThread in loaded traces. The bug was manifesting by not displaying memory events in zone info window.
This commit is contained in:
parent
07bcca9dc0
commit
d0d7131e35
@ -462,6 +462,11 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
||||
f.Read( sz );
|
||||
m_data.threadExpand.reserve_and_use( sz );
|
||||
f.Read( m_data.threadExpand.data(), sizeof( uint64_t ) * sz );
|
||||
m_data.threadMap.reserve( sz );
|
||||
for( size_t i=0; i<sz; i++ )
|
||||
{
|
||||
m_data.threadMap.emplace( m_data.threadExpand[i], i );
|
||||
}
|
||||
}
|
||||
else if( fileVer >= FileVersion( 0, 3, 201 ) )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user