1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Make hw sample cost in source files relative to whole symbol.

This commit is contained in:
Bartosz Taudul 2021-06-20 15:55:21 +02:00
parent 846bde1a11
commit e9aca02880
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -1224,13 +1224,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view )
}
}
GatherAdditionalIpStats( m_symAddr, iptotalSrc, iptotalAsm, ipcountSrc, ipcountAsm, ipmaxSrc, ipmaxAsm, worker, limitView, view );
iptotalSrc = iptotalAsm;
}
}
else
{
GatherIpHwStats( iptotalSrc, iptotalAsm, ipcountSrc, ipcountAsm, ipmaxSrc, ipmaxAsm, worker, limitView, view );
}
if( !m_calcInlineStats )
{
iptotalSrc = iptotalAsm;
}
const auto slzReady = worker.AreSourceLocationZonesReady();
if( ( iptotalAsm.local + iptotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) )
{