From 1419283a9128e548a417b8706eeff4798e68e659 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 13 Oct 2022 21:03:33 +0200 Subject: Make the local callstack more readable. --- server/TracySourceView.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index e63b980d..9323cb6b 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -3778,9 +3778,14 @@ void SourceView::RenderAsmLine( AsmLine& line, const AddrStat& ipcnt, const Addr { ImGui::TextDisabled( "%i.", i+1 ); ImGui::SameLine(); - ImGui::Text( "%s", worker.GetString( frame->data[i].name ) ); + const auto symName = worker.GetString( frame->data[i].name ); + const auto normalized = view.GetShortenName() != ShortenName::Never ? ShortenZoneName( ShortenName::OnlyNormalize, symName ) : symName; + ImGui::Text( "%s", normalized ); ImGui::SameLine(); + ImGui::PushFont( m_smallFont ); + ImGui::AlignTextToFramePadding(); ImGui::TextDisabled( "%s:%i", worker.GetString( frame->data[i].file ), frame->data[i].line ); + ImGui::PopFont(); } } ImGui::EndTooltip(); -- cgit v1.2.3