From c09f3c0676848f8276317cd08b0d9fd703f3b6c9 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Wed, 25 Sep 2019 02:12:35 +0200 Subject: [PATCH] Add thread color boxes to CPU data window. --- server/TracyView.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index a1bf46e4..b9791746 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11222,6 +11222,11 @@ void View::DrawCpuDataWindow() ImGui::TextUnformatted( RealToString( tid, true ) ); ImGui::NextColumn(); ImGui::TextUnformatted( tname ); + if( tidMatch ) + { + ImGui::SameLine(); + SmallColorBox( GetThreadColor( tid, 0 ) ); + } ImGui::NextColumn(); sprintf( buf, "%s (%.2f%%)", TimeToString( tit->second.runningTime ), double( tit->second.runningTime ) * rtimespan * 100 ); ImGui::ProgressBar( double( tit->second.runningTime ) * rtimespan, ImVec2( -1, ty ), buf );