mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00: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 )
|
||||
{
|
||||
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;
|
||||
}
|
||||
else
|
||||
{
|
||||
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…
Reference in New Issue
Block a user