From a7e3324eba18c5b526e526be5ffac9570bdce54b Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 24 Sep 2019 23:45:36 +0200 Subject: [PATCH] Add thread color boxes to GPU context tooltips. --- server/TracyView.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 7168b260..b5bd1922 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2127,6 +2127,8 @@ void View::DrawZones() if( !isVulkan ) { TextFocused( "Thread:", m_worker.GetThreadName( v->thread ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( v->thread, 0 ) ); } else { @@ -2146,6 +2148,8 @@ void View::DrawZones() TextFocused( "Thread:", m_worker.GetThreadName( tid ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( tid, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tid, 0 ) ); } else { @@ -2156,6 +2160,8 @@ void View::DrawZones() ImGui::TextUnformatted( m_worker.GetThreadName( td.first ) ); ImGui::SameLine(); ImGui::TextDisabled( "(%s)", RealToString( td.first, true ) ); + ImGui::SameLine(); + SmallColorBox( GetThreadColor( td.first, 0 ) ); } ImGui::Unindent(); }