Display CPU package, core tooltip for zone CPU list.

This commit is contained in:
Bartosz Taudul 2019-11-29 23:09:11 +01:00
parent 7ac47ab6bb
commit 9cf7629e9b

View File

@ -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();
}
}
}
}