From 68df815ef677ac683e05c9a0d1208836b59f7793 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 31 Jul 2019 00:34:24 +0200 Subject: [PATCH] Display total message count. --- server/TracyView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 92c179c5..b56cee58 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5753,6 +5753,8 @@ void View::DrawOptions() void View::DrawMessages() { + const auto& msgs = m_worker.GetMessages(); + ImGui::SetNextWindowSize( ImVec2( 1200, 600 ), ImGuiCond_FirstUseEver ); ImGui::Begin( "Messages", &m_showMessages ); @@ -5769,6 +5771,10 @@ void View::DrawMessages() { m_messageFilter.Clear(); } + ImGui::SameLine(); + ImGui::Spacing(); + ImGui::SameLine(); + TextFocused( "Total message count:", RealToString( msgs.size(), true ) ); #ifdef TRACY_EXTENDED_FONT auto expand = ImGui::TreeNode( ICON_FA_RANDOM " Visible threads:" ); @@ -5843,7 +5849,6 @@ void View::DrawMessages() ImGui::Separator(); const auto filterActive = m_messageFilter.IsActive(); - const auto& msgs = m_worker.GetMessages(); for( const auto& v : msgs ) { if( VisibleMsgThread( v->thread ) )