From 9cf7629e9bbb5c70f66d8c564b6a80b75cf4cf0a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Nov 2019 23:09:11 +0100 Subject: [PATCH] Display CPU package, core tooltip for zone CPU list. --- server/TracyView.cpp | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 742af09e..e76b5824 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -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(); + } } } }