Add thread color boxes to memory allocation info.

This commit is contained in:
Bartosz Taudul 2019-09-24 23:41:28 +02:00
parent e9b815a3b8
commit c73a74b8d5

View File

@ -9956,6 +9956,8 @@ void View::DrawMemoryAllocWindow()
TextFocused( "Thread:", m_worker.GetThreadName( tidAlloc ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tidAlloc, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( tidAlloc, 0 ) );
if( ev.csAlloc != 0 )
{
ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();
@ -9973,6 +9975,8 @@ void View::DrawMemoryAllocWindow()
TextFocused( "Thread:", m_worker.GetThreadName( tidFree ) );
ImGui::SameLine();
ImGui::TextDisabled( "(%s)", RealToString( tidFree, true ) );
ImGui::SameLine();
SmallColorBox( GetThreadColor( tidFree, 0 ) );
if( ev.csFree != 0 )
{
ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();