1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 20:33:52 +00:00

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; as.ipTotalSrc = as.ipTotalAsm;
} }
if( m_hwSamplesRelative )
{
CountHwStats( as, worker, view );
}
const auto slzReady = worker.AreSourceLocationZonesReady(); const auto slzReady = worker.AreSourceLocationZonesReady();
if( ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) if( ( as.ipTotalAsm.local + as.ipTotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{ {