From f264d0736aa388f51a0375d753c12d2ef37b5b02 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 13 Mar 2024 16:15:15 +0100 Subject: [PATCH] Add grouping icon. --- server/TracyView_ContextSwitch.cpp | 4 ++-- server/TracyView_Memory.cpp | 4 ++-- server/TracyView_Samples.cpp | 4 ++-- server/TracyView_ZoneInfo.cpp | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/TracyView_ContextSwitch.cpp b/server/TracyView_ContextSwitch.cpp index 4222d605..728ab2c1 100644 --- a/server/TracyView_ContextSwitch.cpp +++ b/server/TracyView_ContextSwitch.cpp @@ -546,7 +546,7 @@ void View::DrawWaitStacks() } case 1: { - SmallCheckbox( "Group by function name", &m_groupWaitStackBottomUp ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_groupWaitStackBottomUp ); auto tree = GetCallstackFrameTreeBottomUp( stacks, m_groupCallstackTreeByNameBottomUp ); if( !tree.empty() ) { @@ -561,7 +561,7 @@ void View::DrawWaitStacks() } case 2: { - SmallCheckbox( "Group by function name", &m_groupWaitStackTopDown ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_groupWaitStackTopDown ); auto tree = GetCallstackFrameTreeTopDown( stacks, m_groupCallstackTreeByNameTopDown ); if( !tree.empty() ) { diff --git a/server/TracyView_Memory.cpp b/server/TracyView_Memory.cpp index 9d3aec3f..f058e920 100644 --- a/server/TracyView_Memory.cpp +++ b/server/TracyView_Memory.cpp @@ -435,7 +435,7 @@ void View::DrawMemory() ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine(); - SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_groupCallstackTreeByNameBottomUp ); ImGui::SameLine(); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); ImGui::SameLine(); @@ -473,7 +473,7 @@ void View::DrawMemory() ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine(); - SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_groupCallstackTreeByNameTopDown ); ImGui::SameLine(); DrawHelpMarker( "If enabled, only one source location will be displayed (which may be incorrect)." ); ImGui::SameLine(); diff --git a/server/TracyView_Samples.cpp b/server/TracyView_Samples.cpp index 60514abb..6bee8850 100644 --- a/server/TracyView_Samples.cpp +++ b/server/TracyView_Samples.cpp @@ -951,7 +951,7 @@ void View::DrawSampleParents() } case 1: { - SmallCheckbox( "Group by function name", &m_sampleParents.groupBottomUp ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_sampleParents.groupBottomUp ); auto tree = GetParentsCallstackFrameTreeBottomUp( stats, m_sampleParents.groupBottomUp ); if( !tree.empty() ) { @@ -967,7 +967,7 @@ void View::DrawSampleParents() } case 2: { - SmallCheckbox( "Group by function name", &m_sampleParents.groupTopDown ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group by function name", &m_sampleParents.groupTopDown ); auto tree = GetParentsCallstackFrameTreeTopDown( stats, m_sampleParents.groupTopDown ); if( !tree.empty() ) { diff --git a/server/TracyView_ZoneInfo.cpp b/server/TracyView_ZoneInfo.cpp index 45cc0f1e..12273d83 100644 --- a/server/TracyView_ZoneInfo.cpp +++ b/server/TracyView_ZoneInfo.cpp @@ -1132,7 +1132,7 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime ) const auto ty = ImGui::GetTextLineHeight(); ImGui::SameLine(); - SmallCheckbox( "Group children locations", &m_groupChildrenLocations ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group children locations", &m_groupChildrenLocations ); if( m_groupChildrenLocations ) { @@ -1588,7 +1588,7 @@ void View::DrawGpuInfoChildren( const V& children, int64_t ztime ) const auto ty = ImGui::GetTextLineHeight(); ImGui::SameLine(); - SmallCheckbox( "Group children locations", &m_groupChildrenLocations ); + SmallCheckbox( ICON_FA_LAYER_GROUP " Group children locations", &m_groupChildrenLocations ); if( m_groupChildrenLocations ) {