mirror of
https://github.com/wolfpld/tracy
synced 2025-05-03 06:03:51 +00:00
Display zone exclusive time as progress bar.
This commit is contained in:
parent
3b34ebf544
commit
1fbe1621e7
@ -2460,7 +2460,9 @@ void View::DrawZoneInfoWindow()
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) );
|
ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "Exclusive time: %s (%.2f%%)", TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 );
|
char buf[128];
|
||||||
|
sprintf( buf, "Exclusive time: %s (%.2f%%)", TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 );
|
||||||
|
ImGui::ProgressBar( double( ztime - ctime ) / ztime, ImVec2( -1, ty ), buf );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
for( size_t i=0; i<ev.child.size(); i++ )
|
for( size_t i=0; i<ev.child.size(); i++ )
|
||||||
@ -2564,7 +2566,9 @@ void View::DrawGpuInfoWindow()
|
|||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) );
|
ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Text( "Exclusive time: %s (%.2f%%)", TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 );
|
char buf[128];
|
||||||
|
sprintf( buf, "Exclusive time: %s (%.2f%%)", TimeToString( ztime - ctime ), double( ztime - ctime ) / ztime * 100 );
|
||||||
|
ImGui::ProgressBar( double( ztime - ctime ) / ztime, ImVec2( -1, ty ), buf );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::Separator();
|
ImGui::Separator();
|
||||||
for( size_t i=0; i<ev.child.size(); i++ )
|
for( size_t i=0; i<ev.child.size(); i++ )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user