From c7952e4d4fc1b8a6e148a908944d17f9d6d7428b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 29 Jun 2018 19:02:44 +0200 Subject: [PATCH] Move "without profiling" to tooltip in zone info window. --- server/TracyView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ddbc4843..840a1638 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2957,7 +2957,12 @@ void View::DrawZoneInfoWindow() const auto ztime = end - ev.start; TextFocused( "Time from start of program:", TimeToString( ev.start - m_worker.GetFrameBegin( 0 ) ) ); TextFocused( "Execution time:", TimeToString( ztime ) ); - TextFocused( "Without profiling:", TimeToString( ztime - m_worker.GetDelay() * dmul ) ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + TextFocused( "Without profiling:", TimeToString( ztime - m_worker.GetDelay() * dmul ) ); + ImGui::EndTooltip(); + } auto& mem = m_worker.GetMemData(); if( mem.plot )