mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Don't create empty ghost children vectors.
This commit is contained in:
parent
99544f4655
commit
2723144678
@ -4050,7 +4050,7 @@ int Worker::AddGhostZone( const VarArray<CallstackFrameId>& cs, Vector<GhostZone
|
|||||||
if( !vec->empty() && vec->back().end.Val() > (int64_t)t )
|
if( !vec->empty() && vec->back().end.Val() > (int64_t)t )
|
||||||
{
|
{
|
||||||
auto tmp = vec;
|
auto tmp = vec;
|
||||||
while( tmp->size() > 0 )
|
for(;;)
|
||||||
{
|
{
|
||||||
auto& back = tmp->back();
|
auto& back = tmp->back();
|
||||||
back.end.SetVal( t );
|
back.end.SetVal( t );
|
||||||
@ -4071,7 +4071,7 @@ int Worker::AddGhostZone( const VarArray<CallstackFrameId>& cs, Vector<GhostZone
|
|||||||
if( inlineFrame.symAddr != stack[idx].symAddr ) break;
|
if( inlineFrame.symAddr != stack[idx].symAddr ) break;
|
||||||
if( back.end.Val() != refBackTime ) break;
|
if( back.end.Val() != refBackTime ) break;
|
||||||
back.end.SetVal( t + m_samplingPeriod );
|
back.end.SetVal( t + m_samplingPeriod );
|
||||||
idx++;
|
if( ++idx == stack.size() ) break;
|
||||||
if( back.child < 0 )
|
if( back.child < 0 )
|
||||||
{
|
{
|
||||||
back.child = m_data.ghostChildren.size();
|
back.child = m_data.ghostChildren.size();
|
||||||
|
Loading…
Reference in New Issue
Block a user