mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-29 16:54: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::TextUnformatted( RealToString( tid, true ) );
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
ImGui::TextUnformatted( tname );
|
ImGui::TextUnformatted( tname );
|
||||||
|
if( tidMatch )
|
||||||
|
{
|
||||||
|
ImGui::SameLine();
|
||||||
|
SmallColorBox( GetThreadColor( tid, 0 ) );
|
||||||
|
}
|
||||||
ImGui::NextColumn();
|
ImGui::NextColumn();
|
||||||
sprintf( buf, "%s (%.2f%%)", TimeToString( tit->second.runningTime ), double( tit->second.runningTime ) * rtimespan * 100 );
|
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 );
|
ImGui::ProgressBar( double( tit->second.runningTime ) * rtimespan, ImVec2( -1, ty ), buf );
|
||||||
|
Loading…
Reference in New Issue
Block a user