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:
parent
596727e135
commit
96ecf47ecf
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user