Distinguish kernel symbols on statistics list.

This commit is contained in:
Bartosz Taudul 2021-06-12 16:09:15 +02:00
parent be07ccc1d3
commit 0c13889589
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -13082,15 +13082,22 @@ void View::DrawStatistics()
} }
if( v.symAddr == 0 || excl == 0 ) if( v.symAddr == 0 || excl == 0 )
{ {
ImGui::TextUnformatted( name ); if( isKernel )
{
TextColoredUnformatted( 0xFF8888FF, name );
}
else
{
ImGui::TextUnformatted( name );
}
} }
else else
{ {
ImGui::PushID( idx++ ); ImGui::PushID( idx++ );
if( ImGui::Selectable( name, m_sampleParents.symAddr == v.symAddr, ImGuiSelectableFlags_SpanAllColumns ) ) if( isKernel ) ImGui::PushStyleColor( ImGuiCol_Text, 0xFF8888FF );
{ const auto clicked = ImGui::Selectable( name, m_sampleParents.symAddr == v.symAddr, ImGuiSelectableFlags_SpanAllColumns );
ShowSampleParents( v.symAddr ); if( isKernel ) ImGui::PopStyleColor();
} if( clicked ) ShowSampleParents( v.symAddr );
ImGui::PopID(); ImGui::PopID();
} }
if( parentName ) if( parentName )