From 83b159b43bf0cb50bda3c511d62dbd36bd60e86b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Jul 2021 14:59:25 +0200 Subject: [PATCH] Count hw stats, if relative mode is set. --- server/TracySourceView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 8ebee294..146dba90 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -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 ) ) ) {