From df462f109d1f5cc05e4ef20766606807f6a8d029 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 9 Apr 2021 20:35:17 +0200 Subject: [PATCH] Reconstruct child sample data. --- server/TracyWorker.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index e78097af..c535054b 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -1830,12 +1830,32 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks ) it->second.push_back_non_empty( SampleDataRange { time, ip } ); } } + + for( uint16_t i=1; idata[0].symAddr; + auto it = m_data.childSamples.find( symAddr ); + if( it == m_data.childSamples.end() ) + { + m_data.childSamples.emplace( symAddr, Vector( time ) ); + } + else + { + it->second.push_back_non_empty( time ); + } + } } } for( auto& v : m_data.symbolSamples ) { pdqsort_branchless( v.second.begin(), v.second.end(), []( const auto& lhs, const auto& rhs ) { return lhs.time.Val() < rhs.time.Val(); } ); } + for( auto& v : m_data.childSamples ) + { + pdqsort_branchless( v.second.begin(), v.second.end(), []( const auto& lhs, const auto& rhs ) { return lhs.Val() < rhs.Val(); } ); + } std::lock_guard lock( m_data.lock ); m_data.symbolSamplesReady = true; } ) );