mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Handle one more case of duplicate samples.
This commit is contained in:
parent
625d380f7a
commit
7f5e23f2ac
@ -4634,9 +4634,16 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
|
||||
else
|
||||
{
|
||||
const auto it = std::lower_bound( td->samples.begin(), td->samples.end(), t, [] ( const auto& l, const auto& r ) { return l.time.Val() < r; } );
|
||||
if( it->time.Val() == t )
|
||||
{
|
||||
*it = sd;
|
||||
}
|
||||
else
|
||||
{
|
||||
td->samples.insert( it, sd );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Worker::ProcessCallstackFrameSize( const QueueCallstackFrameSize& ev )
|
||||
|
Loading…
Reference in New Issue
Block a user