1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-02 05:33:53 +00:00

Remove CPU topology tooltip from zone info window.

This commit is contained in:
Bartosz Taudul 2020-04-24 01:44:25 +02:00
parent 14ec246659
commit 170aeea864

View File

@ -6433,29 +6433,11 @@ 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 ) );
ImGui::SameLine();
TextFocused( "Core:", RealToString( tt->core ) );
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 ) );
ImGui::SameLine();
TextFocused( "Core:", RealToString( tt->core ) );
ImGui::EndTooltip();
}
} }
} }
} }