From 0507460a16d3051bac8a0239e57d3a61411f21b8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Nov 2019 23:09:30 +0100 Subject: [PATCH] Add markers for package and core thread migrations. --- server/TracyView.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e76b5824..36a2c710 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5992,6 +5992,21 @@ void View::DrawZoneInfoWindow() #else ImGui::Text( "%i -> %i", cpu0, cpu1 ); #endif + const auto tt0 = m_worker.GetThreadTopology( cpu0 ); + const auto tt1 = m_worker.GetThreadTopology( cpu1 ); + if( tt0 && tt1 ) + { + if( tt0->package != tt1->package ) + { + ImGui::SameLine(); + TextDisabledUnformatted( "P" ); + } + else if( tt0->core != tt1->core ) + { + ImGui::SameLine(); + TextDisabledUnformatted( "C" ); + } + } } ImGui::NextColumn(); const char* desc;