From 75ab9147d025e041fcff651e22becd93024ecd15 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 5 Oct 2018 23:02:23 +0200 Subject: [PATCH] Reduce amount of information in "menu" bar. Zone count, queue delay and timer resolution were moved to the trace information window. Time span and View span are now displayed as icons. --- server/TracyView.cpp | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e13e4b49..c8e5235d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -680,7 +680,27 @@ bool View::DrawImpl() ImGui::EndCombo(); } ImGui::SameLine(); - ImGui::Text( "Time span: %-10s View span: %-10s Zones: %-13s Queue delay: %s Timer resolution: %s", TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ), TimeToString( m_zvEnd - m_zvStart ), RealToString( m_worker.GetZoneCount(), true ), TimeToString( m_worker.GetDelay() ), TimeToString( m_worker.GetResolution() ) ); + ImGui::Spacing(); + ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + ImGui::Text( ICON_FA_EYE " %-10s", TimeToString( m_zvEnd - m_zvStart ) ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "View span" ); + ImGui::EndTooltip(); + } + ImGui::SameLine(); + ImGui::Text( ICON_FA_DATABASE " %-10s", TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) ); + if( ImGui::IsItemHovered() ) + { + ImGui::BeginTooltip(); + ImGui::Text( "Time span" ); + ImGui::EndTooltip(); + } +#else + ImGui::Text( "View span: %-10s Time span: %-10s ", TimeToString( m_zvEnd - m_zvStart ), TimeToString( m_worker.GetLastTime() - m_worker.GetTimeBegin() ) ); +#endif DrawFrames(); DrawZones(); ImGui::End();