From 96ecf47ecfaab474af8e471716f04cd4c437c454 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 8 Aug 2018 20:53:01 +0200 Subject: [PATCH] Add profiler FPS and memory usage to info window. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index ea6de0f0..c39471b4 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5747,7 +5747,12 @@ void View::DrawMemoryAllocWindow() void View::DrawInfo() { + const auto& io = ImGui::GetIO(); + ImGui::Begin( "Trace information", &m_showInfo ); + TextFocused( "Profiler memory usage:", MemSizeToString( memUsage.load( std::memory_order_relaxed ) ) ); + TextFocused( "Profiler FPS:", RealToString( int( io.Framerate ), true ) ); + ImGui::Separator(); TextFocused( "Queue delay:", TimeToString( m_worker.GetDelay() ) ); TextFocused( "Timer resolution:", TimeToString( m_worker.GetResolution() ) ); ImGui::Separator();