1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 20:33:52 +00:00

Show more elements in one-line callstacks.

This commit is contained in:
Bartosz Taudul 2022-08-15 21:36:29 +02:00
parent 697d1f0cad
commit f4524a8453
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 3 additions and 3 deletions

View File

@ -557,7 +557,7 @@ void View::DrawMemoryAllocWindow()
const auto cs = ev.CsAlloc(); const auto cs = ev.CsAlloc();
SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx );
ImGui::SameLine(); ImGui::SameLine();
DrawCallstackCalls( cs, 2 ); DrawCallstackCalls( cs, 4 );
} }
if( ev.TimeFree() < 0 ) if( ev.TimeFree() < 0 )
{ {
@ -583,7 +583,7 @@ void View::DrawMemoryAllocWindow()
const auto cs = ev.csFree.Val(); const auto cs = ev.csFree.Val();
SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx );
ImGui::SameLine(); ImGui::SameLine();
DrawCallstackCalls( cs, 2 ); DrawCallstackCalls( cs, 4 );
} }
TextFocused( "Duration:", TimeToString( ev.TimeFree() - ev.TimeAlloc() ) ); TextFocused( "Duration:", TimeToString( ev.TimeFree() - ev.TimeAlloc() ) );
} }

View File

@ -311,7 +311,7 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx
{ {
SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx );
ImGui::SameLine(); ImGui::SameLine();
DrawCallstackCalls( cs, 4 ); DrawCallstackCalls( cs, 6 );
} }
} }
} }