From bc14ca86f3ccda16a6e5cc46f013c3f8bd4e178e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 29 Feb 2020 17:58:17 +0100 Subject: [PATCH] Count proper number of parent stacks. --- server/TracyWorker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index c620f59e..3947fad5 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -5434,11 +5434,11 @@ void Worker::UpdateSampleStatisticsImpl( const CallstackFrameData** frames, uint auto sit = sym0->second.parents.find( idx ); if( sit == sym0->second.parents.end() ) { - sym0->second.parents.emplace( idx, 1 ); + sym0->second.parents.emplace( idx, count ); } else { - sit->second++; + sit->second += count; } } #endif