mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add markers for package and core thread migrations.
This commit is contained in:
parent
9cf7629e9b
commit
0507460a16
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user