From 02d60a3dde9ce52255870e713d906c62ceced9d8 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 28 Sep 2024 23:58:40 +0200 Subject: [PATCH] Frames already have the correct symbol address. --- profiler/src/profiler/TracyView_FlameGraph.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/profiler/src/profiler/TracyView_FlameGraph.cpp b/profiler/src/profiler/TracyView_FlameGraph.cpp index 61d85968..48b1755e 100644 --- a/profiler/src/profiler/TracyView_FlameGraph.cpp +++ b/profiler/src/profiler/TracyView_FlameGraph.cpp @@ -229,8 +229,7 @@ void View::BuildFlameGraph( const Worker& worker, std::vector& d { for( uint8_t j=frame->size; j>0; j-- ) { - const auto ip = frame->data[j-1].symAddr; - const auto symaddr = worker.GetInlineSymbolForAddress( ip ); + const auto symaddr = frame->data[j-1].symAddr; if( symaddr != 0 ) { auto it = std::find_if( vec->begin(), vec->end(), [symaddr]( const auto& v ) { return v.srcloc == symaddr; } );