diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-14 22:36:09 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-14 22:36:09 +0300 |
commit | ba34596b91baaf176d0885e78d991c7675ac5cbb (patch) | |
tree | c87be60ceea1351c90113fafe6255f69c0d3a4a3 | |
parent | d0d6b8fd8e8901147d178ac70b0e6038e7f36676 (diff) |
No cost propagation when symbol is narrowed down to a single function.
-rw-r--r-- | server/TracySourceView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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 ) |