mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 23:44:35 +00:00
Add thread color boxes to CPU data window.
This commit is contained in:
parent
0cc0b456cc
commit
c09f3c0676
@ -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 );
|
||||
|
Loading…
Reference in New Issue
Block a user