From 98a064efa98e027482d3c75ac3cc9f281afd3480 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 15:30:50 +0200 Subject: [PATCH] Allow inspection of symbol from flame graph. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index 976f3532..e7473870 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -318,6 +318,11 @@ void View::DrawFlameGraphItem( const FlameGraphItem& item, FlameGraphContext& ct ImGui::SameLine(); TextDisabledUnformatted( buf ); } + + if( IsMouseClicked( 0 ) ) + { + ViewDispatch( file, line, symAddr ); + } } ImGui::EndTooltip(); }