From 8c9d46ef296572d15e1824f0c669634ac2ce3b18 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 12 Jul 2019 18:39:07 +0200 Subject: [PATCH] Display application info in info window. --- server/TracyView.cpp | 12 ++++++++++++ server/TracyWorker.hpp | 1 + 2 files changed, 13 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 154077f6..ee490d35 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -8895,6 +8895,18 @@ void View::DrawInfo() } } } + + auto& appInfo = m_worker.GetAppInfo(); + if( !appInfo.empty() ) + { + ImGui::Separator(); + TextDisabledUnformatted( "Application info:" ); + for( auto& v : appInfo ) + { + ImGui::TextUnformatted( m_worker.GetString( v ) ); + } + } + ImGui::End(); } diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index fa5ee8b2..b25452f9 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -279,6 +279,7 @@ public: const Vector& GetThreadData() const { return m_data.threads; } const MemData& GetMemData() const { return m_data.memory; } const Vector& GetFrameImages() const { return m_data.frameImage; } + const Vector& GetAppInfo() const { return m_data.appInfo; } const VarArray& GetCallstack( uint32_t idx ) const { return *m_data.callstackPayload[idx]; } const CallstackFrameData* GetCallstackFrame( const CallstackFrameId& ptr ) const;