Don't search for thread for empty timelines.

This commit is contained in:
Bartosz Taudul 2019-03-14 01:10:57 +01:00
parent b7fe29f750
commit d64f07f853

View File

@ -1146,12 +1146,15 @@ finishLoading:
}; };
for( auto& t : m_data.threads ) for( auto& t : m_data.threads )
{
if( !t->timeline.empty() )
{ {
// Don't touch thread compression cache in a thread. // Don't touch thread compression cache in a thread.
auto it = m_data.threadMap.find( t->id ); auto it = m_data.threadMap.find( t->id );
assert( it != m_data.threadMap.end() ); assert( it != m_data.threadMap.end() );
ProcessTimeline( t->timeline, it->second ); ProcessTimeline( t->timeline, it->second );
} }
}
for( auto& v : m_data.sourceLocationZones ) for( auto& v : m_data.sourceLocationZones )
{ {
auto& zones = v.second.zones; auto& zones = v.second.zones;