mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Don't sort zones if statistics are disabled.
This commit is contained in:
parent
4837ce31ff
commit
ae55360a6d
@ -208,11 +208,13 @@ Worker::Worker( FileRead& f )
|
||||
m_data.threads.push_back_no_space_check( td );
|
||||
}
|
||||
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
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; } );
|
||||
}
|
||||
#endif
|
||||
|
||||
f.Read( &sz, sizeof( sz ) );
|
||||
m_data.gpuData.reserve( sz );
|
||||
|
Loading…
Reference in New Issue
Block a user