From 8cbd209ede5d5427dc5c39149bbe5e9342a4e445 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 9 May 2020 13:53:11 +0200 Subject: [PATCH] Display number of selected lines. --- server/TracySourceView.cpp | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index 8eacb3ce..79b32133 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1444,10 +1444,15 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_mapsecond; + if( it != ipcount.end() ) + { + count += it->second; + numLines++; + } } ImGui::BeginChild( "##srcSelect" ); @@ -1469,6 +1474,10 @@ void SourceView::RenderSymbolSourceView( uint32_t iptotal, unordered_flat_mapsecond; + if( it != ipcount.end() ) + { + count += it->second; + numLines++; + } } ImGui::BeginChild( "##asmSelect" ); @@ -1984,6 +1998,10 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map