mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Display call stack calls in memory allocation window.
This commit is contained in:
parent
973fd941d5
commit
5f0cab6b63
@ -10660,8 +10660,14 @@ void View::DrawMemoryAllocWindow()
|
|||||||
SmallColorBox( GetThreadColor( tidAlloc, 0 ) );
|
SmallColorBox( GetThreadColor( tidAlloc, 0 ) );
|
||||||
if( ev.CsAlloc() != 0 )
|
if( ev.CsAlloc() != 0 )
|
||||||
{
|
{
|
||||||
ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();
|
const auto cs = ev.CsAlloc();
|
||||||
SmallCallstackButton( "Call stack", ev.CsAlloc(), idx );
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx );
|
||||||
|
#else
|
||||||
|
SmallCallstackButton( "Call stack", cs, idx );
|
||||||
|
#endif
|
||||||
|
ImGui::SameLine();
|
||||||
|
DrawCallstackCalls( cs, 2 );
|
||||||
}
|
}
|
||||||
if( ev.TimeFree() < 0 )
|
if( ev.TimeFree() < 0 )
|
||||||
{
|
{
|
||||||
@ -10679,8 +10685,14 @@ void View::DrawMemoryAllocWindow()
|
|||||||
SmallColorBox( GetThreadColor( tidFree, 0 ) );
|
SmallColorBox( GetThreadColor( tidFree, 0 ) );
|
||||||
if( ev.csFree.Val() != 0 )
|
if( ev.csFree.Val() != 0 )
|
||||||
{
|
{
|
||||||
ImGui::SameLine(); ImGui::Spacing(); ImGui::SameLine();
|
const auto cs = ev.csFree.Val();
|
||||||
SmallCallstackButton( "Call stack", ev.csFree.Val(), idx );
|
#ifdef TRACY_EXTENDED_FONT
|
||||||
|
SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx );
|
||||||
|
#else
|
||||||
|
SmallCallstackButton( "Call stack", cs, idx );
|
||||||
|
#endif
|
||||||
|
ImGui::SameLine();
|
||||||
|
DrawCallstackCalls( cs, 2 );
|
||||||
}
|
}
|
||||||
TextFocused( "Duration:", TimeToString( ev.TimeFree() - ev.TimeAlloc() ) );
|
TextFocused( "Duration:", TimeToString( ev.TimeFree() - ev.TimeAlloc() ) );
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user