1
0
mirror of https://github.com/wolfpld/tracy synced 2025-05-07 23:43:52 +00:00

Add thread color box to memory plot tooltip.

This commit is contained in:
Bartosz Taudul 2019-09-24 23:47:51 +02:00
parent 9c86102bad
commit 47f81d0ba4

View File

@ -5033,6 +5033,8 @@ void View::DrawPlotPoint( const ImVec2& wpos, float x, float y, int offset, uint
TextFocused( "Thread:", m_worker.GetThreadName( tid ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tid, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( tid, 0 ) );
m_memoryAllocHover = std::distance( mem.data.begin(), ev );
m_memoryAllocHoverWait = 2;