mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Use correct address for child sample information.
This commit is contained in:
parent
4970c48c51
commit
a5afa2cb4e
@ -1830,16 +1830,13 @@ Worker::Worker( FileRead& f, EventType::Type eventMask, bool bgTasks )
|
||||
it->second.push_back_non_empty( SampleDataRange { time, ip } );
|
||||
}
|
||||
}
|
||||
|
||||
for( uint16_t i=1; i<callstack.size(); i++ )
|
||||
{
|
||||
auto frame = GetCallstackFrame( callstack[i] );
|
||||
if( !frame ) continue;
|
||||
const auto symAddr = frame->data[0].symAddr;
|
||||
auto it = m_data.childSamples.find( symAddr );
|
||||
auto addr = GetCanonicalPointer( callstack[i] );
|
||||
auto it = m_data.childSamples.find( addr );
|
||||
if( it == m_data.childSamples.end() )
|
||||
{
|
||||
m_data.childSamples.emplace( symAddr, Vector<Int48>( time ) );
|
||||
m_data.childSamples.emplace( addr, Vector<Int48>( time ) );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user