Skip to content

Commit

Permalink
Frames already have the correct symbol address.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfpld committed Sep 28, 2024
1 parent d0b6869 commit 02d60a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions profiler/src/profiler/TracyView_FlameGraph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -229,8 +229,7 @@ void View::BuildFlameGraph( const Worker& worker, std::vector<FlameGraphItem>& 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; } );
Expand Down

0 comments on commit 02d60a3

Please sign in to comment.