Add grouping icon.

This commit is contained in:
Bartosz Taudul 2024-03-13 16:15:15 +01:00
parent 18f2631e6e
commit f264d0736a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
4 changed files with 8 additions and 8 deletions

View File

@ -546,7 +546,7 @@ void View::DrawWaitStacks()
} }
case 1: 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 ); auto tree = GetCallstackFrameTreeBottomUp( stacks, m_groupCallstackTreeByNameBottomUp );
if( !tree.empty() ) if( !tree.empty() )
{ {
@ -561,7 +561,7 @@ void View::DrawWaitStacks()
} }
case 2: 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 ); auto tree = GetCallstackFrameTreeTopDown( stacks, m_groupCallstackTreeByNameTopDown );
if( !tree.empty() ) if( !tree.empty() )
{ {

View File

@ -435,7 +435,7 @@ void View::DrawMemory()
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameBottomUp ); SmallCheckbox( ICON_FA_LAYER_GROUP " 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();
@ -473,7 +473,7 @@ void View::DrawMemory()
ImGui::SameLine(); ImGui::SameLine();
ImGui::Spacing(); ImGui::Spacing();
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( "Group by function name", &m_groupCallstackTreeByNameTopDown ); SmallCheckbox( ICON_FA_LAYER_GROUP " 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();

View File

@ -951,7 +951,7 @@ void View::DrawSampleParents()
} }
case 1: 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 ); auto tree = GetParentsCallstackFrameTreeBottomUp( stats, m_sampleParents.groupBottomUp );
if( !tree.empty() ) if( !tree.empty() )
{ {
@ -967,7 +967,7 @@ void View::DrawSampleParents()
} }
case 2: 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 ); auto tree = GetParentsCallstackFrameTreeTopDown( stats, m_sampleParents.groupTopDown );
if( !tree.empty() ) if( !tree.empty() )
{ {

View File

@ -1132,7 +1132,7 @@ void View::DrawZoneInfoChildren( const V& children, int64_t ztime )
const auto ty = ImGui::GetTextLineHeight(); const auto ty = ImGui::GetTextLineHeight();
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( "Group children locations", &m_groupChildrenLocations ); SmallCheckbox( ICON_FA_LAYER_GROUP " Group children locations", &m_groupChildrenLocations );
if( m_groupChildrenLocations ) if( m_groupChildrenLocations )
{ {
@ -1588,7 +1588,7 @@ void View::DrawGpuInfoChildren( const V& children, int64_t ztime )
const auto ty = ImGui::GetTextLineHeight(); const auto ty = ImGui::GetTextLineHeight();
ImGui::SameLine(); ImGui::SameLine();
SmallCheckbox( "Group children locations", &m_groupChildrenLocations ); SmallCheckbox( ICON_FA_LAYER_GROUP " Group children locations", &m_groupChildrenLocations );
if( m_groupChildrenLocations ) if( m_groupChildrenLocations )
{ {