Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--server/TracySourceView.cpp7
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();