mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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 );
|
m_data.threads.push_back_no_space_check( td );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef TRACY_NO_STATISTICS
|
||||||
for( auto& v : m_data.sourceLocationZones )
|
for( auto& v : m_data.sourceLocationZones )
|
||||||
{
|
{
|
||||||
auto& zones = v.second.zones;
|
auto& zones = v.second.zones;
|
||||||
std::sort( zones.begin(), zones.end(), []( const auto& lhs, const auto& rhs ) { return lhs.zone->start < rhs.zone->start; } );
|
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 ) );
|
f.Read( &sz, sizeof( sz ) );
|
||||||
m_data.gpuData.reserve( sz );
|
m_data.gpuData.reserve( sz );
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user