From 07bcca9dc08b90532f71a39d8709cf79b69376f5 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 7 Mar 2019 00:49:06 +0100 Subject: [PATCH] Don't pre-fill threadExpand, if not needed. --- server/TracyWorker.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 2f281c51..c2644f4e 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -251,7 +251,6 @@ Worker::Worker( FileRead& f, EventType::Type eventMask ) { auto loadStart = std::chrono::high_resolution_clock::now(); - m_data.threadExpand.push_back( 0 ); m_data.callstackPayload.push_back( nullptr ); int fileVer = 0; @@ -468,6 +467,11 @@ Worker::Worker( FileRead& f, EventType::Type eventMask ) { f.Read( sz ); m_data.threadExpand.reserve( sz ); + m_data.threadExpand.push_back( 0 ); + } + else + { + m_data.threadExpand.push_back( 0 ); } f.Read( sz );