Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf.pld@gmail.com>2019-08-14 18:12:02 +0300
committerBartosz Taudul <wolf.pld@gmail.com>2019-08-14 18:12:48 +0300
commitfadac0b4333b630346038cbcc3020305b16425bc (patch)
tree6b66ba5eb4359a4b92f2f104a065a58c2b101641 /server/TracyView.cpp
parent3e01ca3269d7b96f01c25bf57c8b1021be4f9bcc (diff)
Display thread running time.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp7
1 files changed, 7 insertions, 0 deletions
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();