mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 22:13:51 +00:00
Clip wait regions display.
This commit is contained in:
parent
4fc675814a
commit
ffdd5290bf
@ -6037,16 +6037,19 @@ void View::DrawZoneInfoWindow()
|
|||||||
ImGui::Text( "State" );
|
ImGui::Text( "State" );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
while( bit < eit )
|
const auto wrsz = eit - bit;
|
||||||
|
ImGuiListClipper clipper( wrsz );
|
||||||
|
while( clipper.Step() )
|
||||||
{
|
{
|
||||||
const auto cend = bit->End();
|
for( auto i=clipper.DisplayStart; i<clipper.DisplayEnd; i++ )
|
||||||
const auto state = bit->State();
|
{
|
||||||
const auto reason = bit->Reason();
|
const auto cend = bit[i].End();
|
||||||
const auto cpu0 = bit->Cpu();
|
const auto state = bit[i].State();
|
||||||
++bit;
|
const auto reason = bit[i].Reason();
|
||||||
const auto cstart = bit->Start();
|
const auto cpu0 = bit[i].Cpu();
|
||||||
const auto cwakeup = bit->WakeupVal();
|
const auto cstart = bit[i+1].Start();
|
||||||
const auto cpu1 = bit->Cpu();
|
const auto cwakeup = bit[i+1].WakeupVal();
|
||||||
|
const auto cpu1 = bit[i+1].Cpu();
|
||||||
|
|
||||||
auto tt = adjust == 0 ? TimeToStringExact( cend ) : TimeToString( cend - adjust );
|
auto tt = adjust == 0 ? TimeToStringExact( cend ) : TimeToString( cend - adjust );
|
||||||
if( ImGui::Selectable( tt ) )
|
if( ImGui::Selectable( tt ) )
|
||||||
@ -6124,6 +6127,7 @@ void View::DrawZoneInfoWindow()
|
|||||||
}
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
ImGui::EndColumns();
|
ImGui::EndColumns();
|
||||||
|
|
||||||
ImGui::TreePop();
|
ImGui::TreePop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user