From d64f07f8533df3e8b2dbd8f62a8797e3a06d231e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Mar 2019 01:10:57 +0100 Subject: [PATCH] Don't search for thread for empty timelines. --- server/TracyWorker.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 0577dda8..dddc7b7a 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1147,10 +1147,13 @@ finishLoading: for( auto& t : m_data.threads ) { - // Don't touch thread compression cache in a thread. - auto it = m_data.threadMap.find( t->id ); - assert( it != m_data.threadMap.end() ); - ProcessTimeline( t->timeline, it->second ); + if( !t->timeline.empty() ) + { + // Don't touch thread compression cache in a thread. + auto it = m_data.threadMap.find( t->id ); + assert( it != m_data.threadMap.end() ); + ProcessTimeline( t->timeline, it->second ); + } } for( auto& v : m_data.sourceLocationZones ) {