From e24ac4275524c69e993dd0cfe839ab363e3ea4c6 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 14 Feb 2019 01:31:06 +0100 Subject: [PATCH] Add self time to GPU zone info window. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index b1915a30..136b794c 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4493,8 +4493,12 @@ void View::DrawGpuInfoWindow() const auto end = m_worker.GetZoneEnd( ev ); const auto ztime = end - ev.gpuStart; + const auto selftime = ztime - GetZoneChildTime( ev ); TextFocused( "Time from start of program:", TimeToString( ev.gpuStart - m_worker.GetTimeBegin() ) ); TextFocused( "GPU execution time:", TimeToString( ztime ) ); + TextFocused( "GPU self time:", TimeToString( selftime ) ); + ImGui::SameLine(); + ImGui::TextDisabled( "(%.2f%%)", 100.f * selftime / ztime ); TextFocused( "CPU command setup time:", TimeToString( ev.cpuEnd - ev.cpuStart ) ); auto ctx = GetZoneCtx( ev ); if( !ctx )