mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add thread color box to CPU data on timeline.
This commit is contained in:
parent
a7e3324eba
commit
9c86102bad
@ -4435,6 +4435,8 @@ int View::DrawCpuData( int offset, double pxns, const ImVec2& wpos, bool hover,
|
|||||||
TextFocused( "Thread:", m_worker.GetThreadName( thread ) );
|
TextFocused( "Thread:", m_worker.GetThreadName( thread ) );
|
||||||
ImGui::SameLine();
|
ImGui::SameLine();
|
||||||
ImGui::TextDisabled( "(%s)", RealToString( thread, true ) );
|
ImGui::TextDisabled( "(%s)", RealToString( thread, true ) );
|
||||||
|
ImGui::SameLine();
|
||||||
|
SmallColorBox( GetThreadColor( thread, 0 ) );
|
||||||
m_drawThreadMigrations = thread;
|
m_drawThreadMigrations = thread;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user