From 22a8c53e8bd128a3ceedc1d319517c655566f1d0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Apr 2021 19:21:53 +0200 Subject: [PATCH] Account for case with no local samples (external only). --- server/TracySourceView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 607673d9..ff715872 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1115,7 +1115,7 @@ void SourceView::RenderSymbolView( const Worker& worker, View& view ) } iptotalSrc = iptotalAsm; } - if( iptotalAsm.local > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) + if( ( iptotalAsm.local + iptotalAsm.ext ) > 0 || ( view.m_statRange.active && worker.GetSamplesForSymbol( m_baseAddr ) ) ) { ImGui::SameLine(); ImGui::Spacing();