From b4dab753e6866545719a16b5f2ac393cc4412b36 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 20 Nov 2021 02:30:49 +0100 Subject: [PATCH] List jump source locations. --- server/TracySourceView.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/server/TracySourceView.cpp b/server/TracySourceView.cpp index e2c9a0ee..e3087a34 100644 --- a/server/TracySourceView.cpp +++ b/server/TracySourceView.cpp @@ -2286,7 +2286,31 @@ uint64_t SourceView::RenderSymbolAsmView( const AddrStatData& as, Worker& worker ImGui::Text( "%s:%i", fileName, srcline ); } TextFocused( "Jump range:", MemSizeToString( v.second.max - v.second.min ) ); + ImGui::Separator(); TextFocused( "Jump sources:", RealToString( v.second.source.size() ) ); + const auto ssz = std::min( v.second.source.size(), 10 ); + for( int j=0; j