mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Remove postponed samples when they are handled.
This commit is contained in:
parent
bb30333947
commit
641338cb3c
@ -4377,6 +4377,14 @@ void Worker::DoPostponedWork()
|
||||
cit = std::lower_bound( cit, ctx->v.end(), sit->time.Val(), [] ( const auto& l, const auto& r ) { return (uint64_t)l.End() < (uint64_t)r; } );
|
||||
}
|
||||
while( cit != ctx->v.end() );
|
||||
if( sit == td->postponedSamples.end() )
|
||||
{
|
||||
td->postponedSamples.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
td->postponedSamples.erase( td->postponedSamples.begin(), sit );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user