mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Fix skipping lock data.
This commit is contained in:
parent
121cced681
commit
cb298893e7
@ -400,9 +400,16 @@ Worker::Worker( FileRead& f, EventType::Type eventMask )
|
|||||||
f.Read( &tsz, sizeof( tsz ) );
|
f.Read( &tsz, sizeof( tsz ) );
|
||||||
f.Skip( tsz * sizeof( uint64_t ) );
|
f.Skip( tsz * sizeof( uint64_t ) );
|
||||||
f.Read( &tsz, sizeof( tsz ) );
|
f.Read( &tsz, sizeof( tsz ) );
|
||||||
|
if( fileVer >= FileVersion( 0, 3, 0 ) )
|
||||||
|
{
|
||||||
|
f.Skip( sizeof( LockEvent::time ) + sizeof( LockEvent::type ) + sizeof( LockEvent::srcloc ) + sizeof( LockEvent::thread ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
f.Skip( tsz * ( type == LockType::Lockable ? sizeof( LockEvent ) : sizeof( LockEventShared ) ) );
|
f.Skip( tsz * ( type == LockType::Lockable ? sizeof( LockEvent ) : sizeof( LockEventShared ) ) );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
flat_hash_map<uint64_t, MessageData*, nohash<uint64_t>> msgMap;
|
flat_hash_map<uint64_t, MessageData*, nohash<uint64_t>> msgMap;
|
||||||
f.Read( &sz, sizeof( sz ) );
|
f.Read( &sz, sizeof( sz ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user