Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-10-14 22:36:09 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-10-14 22:36:09 +0300
commitba34596b91baaf176d0885e78d991c7675ac5cbb (patch)
treec87be60ceea1351c90113fafe6255f69c0d3a4a3
parentd0d6b8fd8e8901147d178ac70b0e6038e7f36676 (diff)
No cost propagation when symbol is narrowed down to a single function.
-rw-r--r--server/TracySourceView.cpp2
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 )