mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Restore ordering of source location zones after load.
This commit is contained in:
parent
f8f59bbd36
commit
ceeae3c2cf
@ -206,6 +206,12 @@ Worker::Worker( FileRead& f )
|
||||
m_data.threads.push_back_no_space_check( td );
|
||||
}
|
||||
|
||||
for( auto& v : m_data.sourceLocationZones )
|
||||
{
|
||||
auto& zones = v.second.zones;
|
||||
std::sort( zones.begin(), zones.end(), []( const auto& lhs, const auto& rhs ) { return lhs.zone->start < rhs.zone->start; } );
|
||||
}
|
||||
|
||||
f.Read( &sz, sizeof( sz ) );
|
||||
m_data.gpuData.reserve( sz );
|
||||
for( uint64_t i=0; i<sz; i++ )
|
||||
|
Loading…
Reference in New Issue
Block a user