mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display CPU package, core tooltip for zone CPU list.
This commit is contained in:
parent
7ac47ab6bb
commit
9cf7629e9b
@ -5892,11 +5892,29 @@ void View::DrawZoneInfoWindow()
|
|||||||
if( numCpus == 0 )
|
if( numCpus == 0 )
|
||||||
{
|
{
|
||||||
ImGui::Text( "%i", i );
|
ImGui::Text( "%i", i );
|
||||||
|
auto tt = m_worker.GetThreadTopology( i );
|
||||||
|
if( tt && ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
TextFocused( "Package:", RealToString( tt->package, true ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextFocused( "Core:", RealToString( tt->core, true ) );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ImGui::Text( "%i,", i );
|
ImGui::Text( "%i,", i );
|
||||||
|
auto tt = m_worker.GetThreadTopology( i );
|
||||||
|
if( tt && ImGui::IsItemHovered() )
|
||||||
|
{
|
||||||
|
ImGui::BeginTooltip();
|
||||||
|
TextFocused( "Package:", RealToString( tt->package, true ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
TextFocused( "Core:", RealToString( tt->core, true ) );
|
||||||
|
ImGui::EndTooltip();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user