From 1953a1a1d519d27316d229963e52f3e69a3099d2 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 6 Feb 2019 22:02:36 +0100 Subject: [PATCH] Notify user about pitfalls of function name grouping. --- server/TracyView.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index be1b6a49..66ce6eec 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8054,6 +8054,14 @@ void View::DrawMemory() #endif { ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); + ImGui::SameLine(); + ImGui::TextDisabled( "(?)" ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "If enabled, only one source location will be displayed (which may be incorrect)." ); + ImGui::EndTooltip(); + } ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." ); ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." ); @@ -8074,6 +8082,14 @@ void View::DrawMemory() #endif { ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); + ImGui::SameLine(); + ImGui::TextDisabled( "(?)" ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "If enabled, only one source location will be displayed (which may be incorrect)." ); + ImGui::EndTooltip(); + } ImGui::TextDisabled( "Press ctrl key to display allocation info tooltip." ); ImGui::TextDisabled( "Right click on function name to display allocations list. Right click on file name to open source file." );