From cfd7ac3957f7a8b264141cbe34eb4317a55c0fb2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 17 Jun 2018 19:03:06 +0200 Subject: [PATCH] Map compressed thread id 0 to real thread id 0. --- server/TracyWorker.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 605518e3..86693087 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -189,6 +189,7 @@ Worker::Worker( const char* addr ) , m_pendingSourceLocation( 0 ) { m_data.sourceLocationExpand.push_back( 0 ); + m_data.threadExpand.push_back( 0 ); #ifndef TRACY_NO_STATISTICS m_data.sourceLocationZonesReady = true; @@ -206,6 +207,8 @@ Worker::Worker( FileRead& f, EventType::Type eventMask ) , m_stream( nullptr ) , m_buffer( nullptr ) { + m_data.threadExpand.push_back( 0 ); + int fileVer = 0; uint8_t hdr[8];