From 93195b6647091aa6916ec4395581a1b301f59f48 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 27 Jul 2019 13:14:44 +0200 Subject: [PATCH] Move trace version display to trace statistics section. --- server/TracyView.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a45accb7..6e21189e 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8431,11 +8431,6 @@ void View::DrawInfo() TextFocused( "Program:", m_worker.GetCaptureProgram().c_str() ); if( m_bigFont ) ImGui::PopFont(); TextFocused( "Capture time:", dtmp ); - ImGui::TextDisabled( "Trace version:" ); - ImGui::SameLine(); - const auto version = m_worker.GetTraceVersion(); - ImGui::Text( "%i.%i.%i", version >> 16, ( version >> 8 ) & 0xFF, version & 0xFF ); - { const auto& desc = m_userData.GetDescription(); const auto descsz = std::min( 255, desc.size() ); @@ -8461,6 +8456,10 @@ void View::DrawInfo() const auto ficnt = m_worker.GetFrameImageCount(); if( ImGui::TreeNode( "Trace statistics" ) ) { + ImGui::TextDisabled( "Trace version:" ); + ImGui::SameLine(); + const auto version = m_worker.GetTraceVersion(); + ImGui::Text( "%i.%i.%i", version >> 16, ( version >> 8 ) & 0xFF, version & 0xFF ); TextFocused( "Queue delay:", TimeToString( m_worker.GetDelay() ) ); TextFocused( "Timer resolution:", TimeToString( m_worker.GetResolution() ) ); TextFocused( "Zones:", RealToString( m_worker.GetZoneCount(), true ) );