mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
Fix fixup of ghost zones end times.
This commit is contained in:
parent
71359c46c1
commit
dd05c8f524
@ -3656,10 +3656,12 @@ int Worker::AddGhostZone( const VarArray<CallstackFrameId>& cs, Vector<GhostZone
|
||||
|
||||
if( !vec->empty() && vec->back().end.Val() > (int64_t)t )
|
||||
{
|
||||
const auto refBackTime = vec->back().end.Val();
|
||||
auto tmp = vec;
|
||||
for(;;)
|
||||
{
|
||||
auto& back = tmp->back();
|
||||
if( back.end.Val() != refBackTime ) break;
|
||||
back.end.SetVal( t );
|
||||
if( back.child < 0 ) break;
|
||||
tmp = &m_data.ghostChildren[back.child];
|
||||
|
Loading…
Reference in New Issue
Block a user