mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +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 } );
|
it->second.push_back_non_empty( SampleDataRange { time, ip } );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for( uint16_t i=1; i<callstack.size(); i++ )
|
for( uint16_t i=1; i<callstack.size(); i++ )
|
||||||
{
|
{
|
||||||
auto frame = GetCallstackFrame( callstack[i] );
|
auto addr = GetCanonicalPointer( callstack[i] );
|
||||||
if( !frame ) continue;
|
auto it = m_data.childSamples.find( addr );
|
||||||
const auto symAddr = frame->data[0].symAddr;
|
|
||||||
auto it = m_data.childSamples.find( symAddr );
|
|
||||||
if( it == m_data.childSamples.end() )
|
if( it == m_data.childSamples.end() )
|
||||||
{
|
{
|
||||||
m_data.childSamples.emplace( symAddr, Vector<Int48>( time ) );
|
m_data.childSamples.emplace( addr, Vector<Int48>( time ) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user