diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2ef4cbfd..2c148046 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -6373,11 +6373,13 @@ void View::DrawInfo() m_frameSortData.average = float( total ) / fsz; m_frameSortData.median = m_frameSortData.data[fsz/2]; + m_frameSortData.total = total; } ImGui::Separator(); TextFocused( "Frame set:", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ) ); TextFocused( "Count:", RealToString( fsz, true ) ); + TextFocused( "Total time:", TimeToString( m_frameSortData.total ) ); TextFocused( "Average frame time:", TimeToString( m_frameSortData.average ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s FPS)", RealToString( round( 1000000000.0 / m_frameSortData.average ), true ) ); diff --git a/server/TracyView.hpp b/server/TracyView.hpp index b1c1103c..f7246e44 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -362,6 +362,7 @@ private: size_t frameNum = 0; float average = 0; float median = 0; + int64_t total = 0; } m_frameSortData; };