mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 14:54:34 +00:00
Reconstruct source location payload map on data load.
This commit is contained in:
parent
a374114358
commit
e9395cd988
@ -126,6 +126,7 @@ Worker::Worker( FileRead& f )
|
|||||||
auto srcloc = m_slab.Alloc<SourceLocation>();
|
auto srcloc = m_slab.Alloc<SourceLocation>();
|
||||||
f.Read( srcloc, sizeof( *srcloc ) );
|
f.Read( srcloc, sizeof( *srcloc ) );
|
||||||
m_data.sourceLocationPayload.push_back( srcloc );
|
m_data.sourceLocationPayload.push_back( srcloc );
|
||||||
|
m_data.sourceLocationPayloadMap.emplace( srcloc, uint32_t( i ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
f.Read( &sz, sizeof( sz ) );
|
f.Read( &sz, sizeof( sz ) );
|
||||||
|
Loading…
Reference in New Issue
Block a user