From e9aca02880452ed90c973c6510bb4bc3922f6aa1 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Jun 2021 15:55:21 +0200 Subject: [PATCH] Make hw sample cost in source files relative to whole symbol. --- server/TracySourceView.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index efcfe25f..285546eb 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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 ) ) ) {