Frames already have the correct symbol address.

This commit is contained in:
Bartosz Taudul 2024-09-28 23:58:40 +02:00
parent d0b6869e9e
commit 02d60a3dde
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -229,8 +229,7 @@ void View::BuildFlameGraph( const Worker& worker, std::vector<FlameGraphItem>& d
{ {
for( uint8_t j=frame->size; j>0; j-- ) for( uint8_t j=frame->size; j>0; j-- )
{ {
const auto ip = frame->data[j-1].symAddr; const auto symaddr = frame->data[j-1].symAddr;
const auto symaddr = worker.GetInlineSymbolForAddress( ip );
if( symaddr != 0 ) if( symaddr != 0 )
{ {
auto it = std::find_if( vec->begin(), vec->end(), [symaddr]( const auto& v ) { return v.srcloc == symaddr; } ); auto it = std::find_if( vec->begin(), vec->end(), [symaddr]( const auto& v ) { return v.srcloc == symaddr; } );