From c73a74b8d5b5c91e03538b955cb4557509419b63 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2019 23:41:28 +0200 Subject: [PATCH] Add thread color boxes to memory allocation info. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index d894cfb4..188711fc 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -9956,6 +9956,8 @@ void View::DrawMemoryAllocWindow() TextFocused( "Thread:", m_worker.GetThreadName( tidAlloc ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( tidAlloc, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tidAlloc, 0 ) ); if( ev.csAlloc != 0 ) { ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine(); @@ -9973,6 +9975,8 @@ void View::DrawMemoryAllocWindow() TextFocused( "Thread:", m_worker.GetThreadName( tidFree ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( tidFree, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tidFree, 0 ) ); if( ev.csFree != 0 ) { ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();