From 1fbe1621e799f2ffd7585de85fbecc7afb8a655d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 19 Mar 2018 02:30:40 +0100 Subject: [PATCH] Display zone exclusive time as progress bar. --- server/TracyView.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ef9e92fc..5f50c913 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2460,7 +2460,9 @@ void View::DrawZoneInfoWindow() ImGui::Separator(); ImGui::Text( "Child zones: %s", RealToString( ev.child.size(), true ) ); 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::Separator(); for( size_t i=0; i