1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-08 07:53:52 +00:00

Add profiler FPS and memory usage to info window.

This commit is contained in:
Bartosz Taudul 2018-08-08 20:53:01 +02:00
parent 596727e135
commit 96ecf47ecf

View File

@ -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();