mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Ignore zero-time zones in search.
This commit is contained in:
parent
785ab2927b
commit
fbaf59c9a6
@ -4677,6 +4677,7 @@ void View::FindZones( const Vector<ZoneEvent*>& events, Vector<ZoneEvent*>& out,
|
|||||||
for( auto& ev : events )
|
for( auto& ev : events )
|
||||||
{
|
{
|
||||||
if( out.size() >= m_findZone.maxZonesPerThread ) break;
|
if( out.size() >= m_findZone.maxZonesPerThread ) break;
|
||||||
|
if( GetZoneEnd( *ev ) == ev->start ) continue;
|
||||||
|
|
||||||
auto& srcloc = GetSourceLocation( ev->srcloc );
|
auto& srcloc = GetSourceLocation( ev->srcloc );
|
||||||
auto str = GetString( srcloc.name.active ? srcloc.name : srcloc.function );
|
auto str = GetString( srcloc.name.active ? srcloc.name : srcloc.function );
|
||||||
|
Loading…
Reference in New Issue
Block a user