From f39efbaa07708eb0f6f9bfcead9e04f9a308b9cd Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 22:58:35 +0200 Subject: [PATCH] Normalize child call names in symbol view. --- server/TracySourceView.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index b7e576d8..0176fffe 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -1563,7 +1563,16 @@ void SourceView::RenderSymbolView( Worker& worker, View& view ) const auto symName = sd ? worker.GetString( sd->name ) : "[unknown]"; if( v.addr >> 63 == 0 ) { - ImGui::TextUnformatted( symName ); + if( shortenName == ShortenName::Never ) + { + ImGui::TextUnformatted( symName ); + } + else + { + const auto normalized = ShortenZoneName( ShortenName::OnlyNormalize, symName ); + ImGui::TextUnformatted( normalized ); + TooltipNormalizedName( symName, normalized ); + } } else {