Handle one more case of duplicate samples.

This commit is contained in:
Bartosz Taudul 2020-02-23 15:57:36 +01:00
parent 625d380f7a
commit 7f5e23f2ac

View File

@ -4634,10 +4634,17 @@ 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 )
{