mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08: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
|
#else
|
||||||
ImGui::Text( "%i -> %i", cpu0, cpu1 );
|
ImGui::Text( "%i -> %i", cpu0, cpu1 );
|
||||||
#endif
|
#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();
|
ImGui::NextColumn();
|
||||||
const char* desc;
|
const char* desc;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user