From ba34596b91baaf176d0885e78d991c7675ac5cbb Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 14 Oct 2022 21:36:09 +0200 Subject: [PATCH] No cost propagation when symbol is narrowed down to a single function. --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index aef4a8bd..35f2ed2e 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1792,7 +1792,7 @@ static uint32_t GetGoodnessColor( float inRatio ) void SourceView::RenderSymbolSourceView( const AddrStatData& as, Worker& worker, const View& view ) { const auto scale = GetScale(); - if( m_cost == CostType::SampleCount && ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) + if( m_cost == CostType::SampleCount && !m_calcInlineStats && ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) { const auto samplesReady = worker.AreSymbolSamplesReady(); if( !samplesReady )