Ignore zero-time zones in search.

This commit is contained in:
Bartosz Taudul 2018-02-21 15:25:28 +01:00
parent 785ab2927b
commit fbaf59c9a6

View File

@ -4677,6 +4677,7 @@ void View::FindZones( const Vector<ZoneEvent*>& events, Vector<ZoneEvent*>& out,
for( auto& ev : events )
{
if( out.size() >= m_findZone.maxZonesPerThread ) break;
if( GetZoneEnd( *ev ) == ev->start ) continue;
auto& srcloc = GetSourceLocation( ev->srcloc );
auto str = GetString( srcloc.name.active ? srcloc.name : srcloc.function );