From 581fd920a159f2398b490987751c9d04e8b3939c Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2019 23:52:52 +0200 Subject: [PATCH] Add thread color boxes to lock info. --- server/TracyView.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 86529312..60b4e4ce 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -3683,6 +3683,8 @@ void View::DrawLockHeader( uint32_t id, const LockMap& lockmap, const SourceLoca ImGui::Indent( ty ); for( const auto& t : lockmap.threadList ) { + SmallColorBox( GetThreadColor( t, 0 ) ); + ImGui::SameLine(); ImGui::TextUnformatted( m_worker.GetThreadName( t ) ); } ImGui::Unindent( ty ); @@ -10912,6 +10914,8 @@ void View::DrawLockInfoWindow() { for( const auto& t : lock.threadList ) { + SmallColorBox( GetThreadColor( t, 0 ) ); + ImGui::SameLine(); ImGui::TextUnformatted( m_worker.GetThreadName( t ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( t, true ) );