1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

UI cosmetics.

This commit is contained in:
Bartosz Taudul 2021-11-13 22:27:54 +01:00
parent 41c5d93a11
commit 014f084393
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -16438,17 +16438,6 @@ void View::DrawWaitStacks()
ImGui::SameLine();
ToggleButton( ICON_FA_RULER " Limits", m_showRanges );
}
if( m_waitStackMode != 0 )
{
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::SeparatorEx( ImGuiSeparatorFlags_Vertical );
ImGui::SameLine();
ImGui::Spacing();
ImGui::SameLine();
ImGui::Checkbox( "Group by function name", m_waitStackMode == 1 ? &m_groupWaitStackBottomUp : &m_groupWaitStackTopDown );
}
ImGui::PopStyleVar();
bool threadsChanged = false;
@ -16559,6 +16548,7 @@ void View::DrawWaitStacks()
}
case 1:
{
SmallCheckbox( "Group by function name", &m_groupWaitStackBottomUp );
auto tree = GetCallstackFrameTreeBottomUp( stacks, m_groupCallstackTreeByNameBottomUp );
if( !tree.empty() )
{
@ -16573,6 +16563,7 @@ void View::DrawWaitStacks()
}
case 2:
{
SmallCheckbox( "Group by function name", &m_groupWaitStackTopDown );
auto tree = GetCallstackFrameTreeTopDown( stacks, m_groupCallstackTreeByNameTopDown );
if( !tree.empty() )
{