Do not limit inline propagation to sample count cost.

This commit is contained in:
Bartosz Taudul 2022-10-15 00:43:07 +02:00
parent 564534c703
commit 306ef02aa2
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1782,7 +1782,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 && !m_calcInlineStats && ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
if( !m_calcInlineStats && ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{
const auto samplesReady = worker.AreSymbolSamplesReady();
if( !samplesReady )