Add markers for package and core thread migrations.

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

View File

@ -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;