From fadac0b4333b630346038cbcc3020305b16425bc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 14 Aug 2019 17:12:02 +0200 Subject: [PATCH] Display thread running time. --- server/TracyView.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 245d90c1..52f8ad5e 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2109,6 +2109,13 @@ void View::DrawZones() TextFocused( "Lifetime:", TimeToString( lifetime ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%.2f%%)", lifetime / double( traceLen ) * 100 ); + + if( ctx ) + { + TextFocused( "Time in running state:", TimeToString( ctx->runningTime ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", ctx->runningTime / double( lifetime ) * 100 ); + } } ImGui::Separator();