1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Use precalculated min/max time spans.

This commit is contained in:
Bartosz Taudul
2018-03-18 20:20:24 +01:00
parent 0f1f7c6813
commit 3ac98beb5a
3 changed files with 11 additions and 24 deletions
+3 -3
View File
@@ -418,11 +418,11 @@ std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) cons
}
#ifndef TRACY_NO_STATISTICS
const Vector<ZoneEvent*>& Worker::GetZonesForSourceLocation( int32_t srcloc ) const
const Worker::SourceLocationZones& Worker::GetZonesForSourceLocation( int32_t srcloc ) const
{
static const Vector<ZoneEvent*> empty;
static const SourceLocationZones empty;
auto it = m_data.sourceLocationZones.find( srcloc );
return it != m_data.sourceLocationZones.end() ? it->second.zones : empty;
return it != m_data.sourceLocationZones.end() ? it->second : empty;
}
#endif