diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-10-13 22:03:33 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-10-13 22:03:33 +0300 |
commit | 1419283a9128e548a417b8706eeff4798e68e659 (patch) | |
tree | 1b7c73d05de5a70a1189bebfb7c474662f03bc7c | |
parent | 2a333b8449b9a848904631a93519843f7e6d420b (diff) |
Make the local callstack more readable.
-rw-r--r-- | server/TracySourceView.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
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(); |