mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-02 09:44:35 +00:00
Display wakeup times in zone wait regions list.
This commit is contained in:
parent
0e89105bdb
commit
5e8b2a0723
@ -5192,13 +5192,15 @@ void View::DrawZoneInfoWindow()
|
|||||||
SmallCheckbox( "Time relative to zone start", &m_ctxSwitchTimeRelativeToZone );
|
SmallCheckbox( "Time relative to zone start", &m_ctxSwitchTimeRelativeToZone );
|
||||||
const int64_t adjust = m_ctxSwitchTimeRelativeToZone ? ev.Start() : 0;
|
const int64_t adjust = m_ctxSwitchTimeRelativeToZone ? ev.Start() : 0;
|
||||||
|
|
||||||
ImGui::Columns( 5 );
|
ImGui::Columns( 6 );
|
||||||
ImGui::Text( "Begin" );
|
ImGui::Text( "Begin" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "End" );
|
ImGui::Text( "End" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "Time" );
|
ImGui::Text( "Time" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
|
ImGui::Text( "Wakeup" );
|
||||||
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "CPU" );
|
ImGui::Text( "CPU" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "State" );
|
ImGui::Text( "State" );
|
||||||
@ -5212,6 +5214,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
const auto cpu0 = bit->Cpu();
|
const auto cpu0 = bit->Cpu();
|
||||||
++bit;
|
++bit;
|
||||||
const auto cstart = bit->Start();
|
const auto cstart = bit->Start();
|
||||||
|
const auto cwakeup = bit->wakeup;
|
||||||
const auto cpu1 = bit->Cpu();
|
const auto cpu1 = bit->Cpu();
|
||||||
|
|
||||||
if( ImGui::Selectable( TimeToString( cend - adjust ) ) )
|
if( ImGui::Selectable( TimeToString( cend - adjust ) ) )
|
||||||
@ -5224,9 +5227,21 @@ void View::DrawZoneInfoWindow()
|
|||||||
CenterAtTime( cstart );
|
CenterAtTime( cstart );
|
||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
if( ImGui::Selectable( TimeToString( cstart - cend ) ) )
|
if( ImGui::Selectable( TimeToString( cwakeup - cend ) ) )
|
||||||
{
|
{
|
||||||
ZoomToRange( cend, cstart );
|
ZoomToRange( cend, cwakeup );
|
||||||
|
}
|
||||||
|
ImGui::NextColumn();
|
||||||
|
if( cstart != cwakeup )
|
||||||
|
{
|
||||||
|
if( ImGui::Selectable( TimeToString( cstart - cwakeup ) ) )
|
||||||
|
{
|
||||||
|
ZoomToRange( cwakeup, cstart );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
ImGui::TextUnformatted( "-" );
|
||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
if( cpu0 == cpu1 )
|
if( cpu0 == cpu1 )
|
||||||
|
Loading…
Reference in New Issue
Block a user