From 7446e27e60950f73330372257f70a8a4978b86cc Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 21 Sep 2017 02:30:05 +0200 Subject: [PATCH] Display per-frame program execution time. --- server/TracyView.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 221ad619..99e5ca9d 100755 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -572,6 +572,7 @@ void View::DrawFrames() ImGui::Text( "Frame: %i", sel ); ImGui::Text( "Frame time: %s", TimeToString( GetFrameTime( sel ) ) ); } + ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[sel] - m_frames[0] ) ); ImGui::EndTooltip(); } @@ -723,6 +724,7 @@ void View::DrawZones() { ImGui::BeginTooltip(); ImGui::Text( buf ); + ImGui::Text( "Time from start of program: %s", TimeToString( m_frames[i] - m_frames[0] ) ); ImGui::EndTooltip(); }