From 0624c592e352934eb6384dab83be9ad232fc8d2e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 3 Jul 2022 15:14:53 +0200 Subject: [PATCH] Advise about slow send queue. --- server/TracyView_NotificationArea.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/server/TracyView_NotificationArea.cpp b/server/TracyView_NotificationArea.cpp index 8a421ec5..6cac384d 100644 --- a/server/TracyView_NotificationArea.cpp +++ b/server/TracyView_NotificationArea.cpp @@ -10,6 +10,25 @@ extern double s_time; void View::DrawNotificationArea() { + if( m_sendQueueWarning.enabled ) + { + ImGui::SameLine(); + TextColoredUnformatted( ImVec4( 0, 0.5, 1, 1 ), ICON_FA_SATELLITE_DISH ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::TextUnformatted( "The client is slow to answer queries." ); + ImGui::TextUnformatted( "" ); + ImGui::TextWrapped( "Such behavior is typically caused by the symbol resolution performed client-side. If this is a problem, you may try the following options:" ); + ImGui::BulletText( "Disable inline-symbol resolution with TRACY_NO_CALLSTACK_INLINES" ); + ImGui::BulletText( "Disable call stack sampling with TRACY_NO_SAMPLING" ); + ImGui::BulletText( "Change sampling frequency with TRACY_SAMPLING_HZ" ); + ImGui::BulletText( "Disable symbol resolution altogether with TRACY_NO_CALLSTACK" ); + ImGui::TextWrapped( "For more information, please refer to the manual." ); + ImGui::EndTooltip(); + if( IsMouseClicked( 0 ) ) m_sendQueueWarning.enabled = false; + } + } auto& io = ImGui::GetIO(); const auto ty = ImGui::GetTextLineHeight(); if( m_worker.IsConnected() )