From b6079f8c9a091c4aa6a00e8d889143a7966befde Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 18 Nov 2017 01:03:32 +0100 Subject: [PATCH] Display number of top-level zones. --- server/TracyView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 67b65de0..1b723a3d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2027,6 +2027,7 @@ void View::DrawZones() ImGui::BeginTooltip(); ImGui::Text( "%s", buf ); ImGui::Separator(); + ImGui::Text( "Thread: %s", GetThreadString( v->thread ) ); if( !v->timeline.empty() ) { const auto t = v->timeline.front()->gpuStart; @@ -2035,7 +2036,7 @@ void View::DrawZones() ImGui::Text( "Appeared at %s", TimeToString( t - m_frames[0] ) ); } } - ImGui::Text( "Thread: %s", GetThreadString( v->thread ) ); + ImGui::Text( "Top-level zones: %zu", v->timeline.size() ); ImGui::Text( "Query accuracy bits: %i", v->accuracyBits ); ImGui::EndTooltip(); }