mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-12 19:31:47 +00:00
Generate child sample data during capture.
This commit is contained in:
parent
fb872fa088
commit
d234f4dbe4
@ -5828,6 +5828,19 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
for( uint16_t i=1; i<cs.size(); i++ )
|
||||||
|
{
|
||||||
|
auto addr = GetCanonicalPointer( cs[i] );
|
||||||
|
auto it = m_data.childSamples.find( addr );
|
||||||
|
if( it == m_data.childSamples.end() )
|
||||||
|
{
|
||||||
|
m_data.childSamples.emplace( addr, Vector<Int48>( sd.time ) );
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
it->second.push_back_non_empty( sd.time );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
const auto framesKnown = UpdateSampleStatistics( m_pendingCallstackId, 1, true );
|
const auto framesKnown = UpdateSampleStatistics( m_pendingCallstackId, 1, true );
|
||||||
assert( td->samples.size() > td->ghostIdx );
|
assert( td->samples.size() > td->ghostIdx );
|
||||||
|
Loading…
Reference in New Issue
Block a user