From 3df0abd164f549a23f0fb0d571182194253f2abb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 12 Oct 2017 19:52:06 +0200 Subject: [PATCH] Only check thread string when adding a new thread. --- server/TracyView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ec03d6c7..bd266f7a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -442,7 +442,6 @@ void View::ProcessZoneBegin( const QueueZoneBegin& ev ) auto zone = m_slab.Alloc(); CheckSourceLocation( ev.srcloc ); - CheckThreadString( ev.thread ); zone->start = ev.time * m_timerMul; zone->end = -1; @@ -672,6 +671,7 @@ void View::NewZone( Event* zone, uint64_t thread ) auto it = m_threadMap.find( thread ); if( it == m_threadMap.end() ) { + CheckThreadString( thread ); m_threadMap.emplace( thread, (uint32_t)m_threads.size() ); m_threads.push_back( new ThreadData { thread, true } ); timeline = &m_threads.back()->timeline;