From f4524a84531509eb41d69440bae95df61c49643a Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 21:36:29 +0200 Subject: [PATCH] Show more elements in one-line callstacks. --- server/TracyView_Memory.cpp | 4 ++-- server/TracyView_Messages.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/server/TracyView_Memory.cpp b/server/TracyView_Memory.cpp index 752a7b23..d21dee3a 100644 --- a/server/TracyView_Memory.cpp +++ b/server/TracyView_Memory.cpp @@ -557,7 +557,7 @@ void View::DrawMemoryAllocWindow() const auto cs = ev.CsAlloc(); SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); ImGui::SameLine(); - DrawCallstackCalls( cs, 2 ); + DrawCallstackCalls( cs, 4 ); } if( ev.TimeFree() < 0 ) { @@ -583,7 +583,7 @@ void View::DrawMemoryAllocWindow() const auto cs = ev.csFree.Val(); SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); ImGui::SameLine(); - DrawCallstackCalls( cs, 2 ); + DrawCallstackCalls( cs, 4 ); } TextFocused( "Duration:", TimeToString( ev.TimeFree() - ev.TimeAlloc() ) ); } diff --git a/server/TracyView_Messages.cpp b/server/TracyView_Messages.cpp index ec1203d0..bf512591 100644 --- a/server/TracyView_Messages.cpp +++ b/server/TracyView_Messages.cpp @@ -311,7 +311,7 @@ void View::DrawMessageLine( const MessageData& msg, bool hasCallstack, int& idx { SmallCallstackButton( ICON_FA_ALIGN_JUSTIFY, cs, idx ); ImGui::SameLine(); - DrawCallstackCalls( cs, 4 ); + DrawCallstackCalls( cs, 6 ); } } }