Use less space for call stack tree headers.

This commit is contained in:
Bartosz Taudul 2019-07-27 13:10:53 +02:00
parent fb11d67d8e
commit e1af87744b

View File

@ -10160,13 +10160,12 @@ void View::DrawMemory()
if( ImGui::TreeNode( "Bottom-up call stack tree" ) ) if( ImGui::TreeNode( "Bottom-up call stack tree" ) )
#endif #endif
{ {
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp );
ImGui::SameLine(); ImGui::SameLine();
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Checkbox( "Only active allocations", &m_activeOnlyBottomUp ); SmallCheckbox( "Only active allocations", &m_activeOnlyBottomUp );
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." ); TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." );
TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." );
auto& mem = m_worker.GetMemData(); auto& mem = m_worker.GetMemData();
auto tree = GetCallstackFrameTreeBottomUp( mem ); auto tree = GetCallstackFrameTreeBottomUp( mem );
@ -10184,13 +10183,12 @@ void View::DrawMemory()
if( ImGui::TreeNode( "Top-down call stack tree" ) ) if( ImGui::TreeNode( "Top-down call stack tree" ) )
#endif #endif
{ {
ImGui::Checkbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameTopDown );
ImGui::SameLine(); ImGui::SameLine();
DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." );
ImGui::SameLine(); ImGui::SameLine();
ImGui::Checkbox( "Only active allocations", &m_activeOnlyTopDown ); SmallCheckbox( "Only active allocations", &m_activeOnlyTopDown );
TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip." ); TextDisabledUnformatted( "Press ctrl key to display allocation info tooltip. Right click on function name to display allocations list." );
TextDisabledUnformatted( "Right click on function name to display allocations list. Right click on file name to open source file." );
auto& mem = m_worker.GetMemData(); auto& mem = m_worker.GetMemData();
auto tree = GetCallstackFrameTreeTopDown( mem ); auto tree = GetCallstackFrameTreeTopDown( mem );