From e1af87744b06b24abffd03cdc5f7b57b31952e2d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Jul 2019 13:10:53 +0200 Subject: [PATCH] Use less space for call stack tree headers. --- server/TracyView.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 20c487e5..c951d093 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -10160,13 +10160,12 @@ void View::DrawMemory() if( ImGui::TreeNode( "Bottom-up call stack tree" ) ) #endif { - ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); + SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); ImGui::SameLine(); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); ImGui::SameLine(); - ImGui::Checkbox( "Only active allocations", &m_activeOnlyBottomUp ); - TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." ); - TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." ); + SmallCheckbox( "Only active allocations", &m_activeOnlyBottomUp ); + TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." ); auto& mem = m_worker.GetMemData(); auto tree = GetCallstackFrameTreeBottomUp( mem ); @@ -10184,13 +10183,12 @@ void View::DrawMemory() if( ImGui::TreeNode( "Top-down call stack tree" ) ) #endif { - ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); + SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); ImGui::SameLine(); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); ImGui::SameLine(); - ImGui::Checkbox( "Only active allocations", &m_activeOnlyTopDown ); - TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." ); - TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." ); + SmallCheckbox( "Only active allocations", &m_activeOnlyTopDown ); + TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." ); auto& mem = m_worker.GetMemData(); auto tree = GetCallstackFrameTreeTopDown( mem );