From 916e62de17904fb06540f3e348b6471efd7ee841 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 14 Jul 2026 19:17:22 +0200 Subject: [PATCH] Display count of sections in each category. --- profiler/src/profiler/TracyView_Options.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/profiler/src/profiler/TracyView_Options.cpp b/profiler/src/profiler/TracyView_Options.cpp index f2558d98..a32e8634 100644 --- a/profiler/src/profiler/TracyView_Options.cpp +++ b/profiler/src/profiler/TracyView_Options.cpp @@ -102,7 +102,8 @@ void View::DrawOptions() DefaultMarker(default_markers_active); } - if( !m_worker.GetSections().empty() ) + const auto& sections = m_worker.GetSections(); + if( !sections.empty() ) { ImGui::Separator(); val = m_vd.drawSections; @@ -147,6 +148,9 @@ void View::DrawOptions() { ImGui::PushID( idx++ ); SmallCheckbox( m_worker.GetSectionCategoryDescription( v.first ), &Vis( v.first ) ); + ImGui::SameLine(); + auto it = sections.find( v.first ); + ImGui::TextDisabled( "(%s)", RealToString( it->second.size() ) ); ImGui::PopID(); } ImGui::TreePop();