From d4e9baa0d9a241456c8498254104d20827461487 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 20 Jan 2019 03:16:32 +0100 Subject: [PATCH] Display time savings also as time percentage. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e79548af..8cc2364a 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6020,6 +6020,8 @@ void View::DrawCompare() #endif TextFocused( "Total time (ext.):", TimeToString( zoneData1.total * adj1 ) ); TextFocused( "Savings:", TimeToString( zoneData1.total * adj1 - zoneData0.total * adj0 ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", ( zoneData0.total * adj0 ) / ( zoneData1.total * adj1 ) * 100 ); TextFocused( "Max counts:", cumulateTime ? TimeToString( maxVal ) : RealToString( floor( maxVal ), true ) ); #ifdef TRACY_EXTENDED_FONT