Add thread color boxes to CPU data window.

This commit is contained in:
Bartosz Taudul 2019-09-25 02:12:35 +02:00
parent 0cc0b456cc
commit c09f3c0676

View File

@ -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 );