Count hw stats, if relative mode is set.

This commit is contained in:
Bartosz Taudul 2021-07-18 14:59:25 +02:00
parent fbf2c87a20
commit 83b159b43b
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1233,6 +1233,10 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
{
as.ipTotalSrc = as.ipTotalAsm;
}
if( m_hwSamplesRelative )
{
CountHwStats( as, worker, view );
}
const auto slzReady = worker.AreSourceLocationZonesReady();
if( ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{