From e28022f7350c23fb48456a4cb0766f8e9bdd30c0 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 2 May 2018 19:07:34 +0200 Subject: [PATCH] Don't display alloc, free threads on two lines. --- server/TracyView.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index bce53166..45a65de6 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -4630,10 +4630,13 @@ void View::ListMemData( T ptr, T end, std::function DrawAdd { ImGui::Text( "%s", TimeToString( v->timeFree - v->timeAlloc ) ); ImGui::NextColumn(); - ImGui::Text( "%s", m_worker.GetThreadString( m_worker.DecompressThread( v->threadAlloc ) ) ); - if( v->threadAlloc != v->threadFree ) + if( v->threadAlloc == v->threadFree ) { - ImGui::Text( "%s", m_worker.GetThreadString( m_worker.DecompressThread( v->threadFree ) ) ); + ImGui::Text( "%s", m_worker.GetThreadString( m_worker.DecompressThread( v->threadAlloc ) ) ); + } + else + { + ImGui::Text( "%s / %s", m_worker.GetThreadString( m_worker.DecompressThread( v->threadAlloc ) ), m_worker.GetThreadString( m_worker.DecompressThread( v->threadFree ) ) ); } } ImGui::NextColumn();