From f2001c95a5c482d621758c4c1065d37baa5ebb74 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 17:13:39 +0200 Subject: [PATCH] Shorten frame names in callstack tooltip. --- server/TracyView_Callstack.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/TracyView_Callstack.cpp b/server/TracyView_Callstack.cpp index 2dd259b4..830a83ec 100644 --- a/server/TracyView_Callstack.cpp +++ b/server/TracyView_Callstack.cpp @@ -4,6 +4,7 @@ #include "../public/common/TracyStackFrames.hpp" #include "TracyImGui.hpp" #include "TracyPrint.hpp" +#include "TracyUtility.hpp" #include "TracyView.hpp" namespace tracy @@ -465,10 +466,14 @@ void View::CallstackTooltipContents( uint32_t idx ) { TextColoredUnformatted( 0xFF8888FF, txt ); } - else + else if( m_shortenName == ShortenName::Never ) { ImGui::TextUnformatted( txt ); } + else + { + ImGui::TextUnformatted( ShortenZoneName( ShortenName::OnlyNormalize, txt ) ); + } if( frameData->imageName.Active() ) { ImGui::SameLine();