From c7a5e25c8785904f05efb78801ca1bb012ac3111 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 28 Mar 2018 19:35:33 +0200 Subject: [PATCH] Display parent times. --- server/TracyView.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5e03fa20..52ed2735 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2475,7 +2475,7 @@ void View::DrawZoneInfoWindow() auto sel = ImGui::Selectable( txt, false ); auto hover = ImGui::IsItemHovered(); ImGui::SameLine(); - ImGui::TextDisabled( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); + ImGui::TextDisabled( "(%s) %s:%i", TimeToString( m_worker.GetZoneEnd( *v ) - v->start ), m_worker.GetString( srcloc.file ), srcloc.line ); ImGui::PopID(); if( sel ) { @@ -2634,7 +2634,7 @@ void View::DrawGpuInfoWindow() auto sel = ImGui::Selectable( txt, false ); auto hover = ImGui::IsItemHovered(); ImGui::SameLine(); - ImGui::TextDisabled( "%s:%i", m_worker.GetString( srcloc.file ), srcloc.line ); + ImGui::TextDisabled( "(%s) %s:%i", TimeToString( m_worker.GetZoneEnd( *v ) - v->gpuStart ), m_worker.GetString( srcloc.file ), srcloc.line ); ImGui::PopID(); if( sel ) {