From efbf13fcd4bb0a89562b14b4c6529ad11edcf730 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 27 Mar 2020 21:16:23 +0100 Subject: [PATCH] Don't store inlined symbols locations. --- server/TracyWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 9ba20a55..2092a333 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1658,7 +1658,7 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) Int24 size; f.Read9( symAddr, name, file, line, imageName, callFile, callLine, isInline, size ); m_data.symbolMap.emplace( symAddr, SymbolData { name, file, line, imageName, callFile, callLine, isInline, size } ); - m_data.symbolLoc.push_back( SymbolLocation { symAddr, size.Val() } ); + if( !isInline) m_data.symbolLoc.push_back( SymbolLocation { symAddr, size.Val() } ); } #ifdef NO_PARALLEL_SORT pdqsort_branchless( m_data.symbolLoc.begin(), m_data.symbolLoc.end(), [] ( const auto& l, const auto& r ) { return l.addr < r.addr; } ); @@ -5299,7 +5299,7 @@ void Worker::ProcessSymbolInformation( const QueueSymbolInformation& ev ) Query( ServerQuerySymbolCode, ev.symAddr, it->second.size ); } - m_data.symbolLoc.push_back( SymbolLocation { ev.symAddr, it->second.size } ); + if( !it->second.isInline ) m_data.symbolLoc.push_back( SymbolLocation { ev.symAddr, it->second.size } ); m_pendingSymbols.erase( it ); m_pendingCustomStrings.erase( fit );