mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-14 04:01:48 +00:00
Distinguish kernel symbols on statistics list.
This commit is contained in:
parent
be07ccc1d3
commit
0c13889589
@ -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 )
|
||||||
|
Loading…
Reference in New Issue
Block a user