No cost propagation when symbol is narrowed down to a single function.

This commit is contained in:
Bartosz Taudul 2022-10-14 21:36:09 +02:00
parent d0d6b8fd8e
commit ba34596b91
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -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 )