mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Add thread color boxes to memory allocation info.
This commit is contained in:
parent
e9b815a3b8
commit
c73a74b8d5
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user