From 616269e84920d7a2796c1134a34729bc8d245579 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 18 Mar 2018 16:11:08 +0100 Subject: [PATCH] Display zone counts in matched source locations. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 585c013a..82cdacdf 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2733,10 +2733,11 @@ void View::DrawFindZone() for( auto& v : m_findZone.match ) { auto& srcloc = m_worker.GetSourceLocation( v ); + auto& zones = m_worker.GetZonesForSourceLocation( v ); ImGui::PushID( idx ); ImGui::RadioButton( m_worker.GetString( srcloc.name.active ? srcloc.name : srcloc.function ), &m_findZone.selMatch, idx++ ); ImGui::SameLine(); - ImGui::TextColored( ImVec4( 0.5, 0.5, 0.5, 1 ), "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); + ImGui::TextColored( ImVec4( 0.5, 0.5, 0.5, 1 ), "(%s) %s:%i", RealToString( zones.size(), true ), m_worker.GetString( srcloc.file ), srcloc.line ); ImGui::PopID(); } ImGui::TreePop();