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,7 +4634,14 @@ 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; } );
td->samples.insert( it, sd );
if( it->time.Val() == t )
{
*it = sd;
}
else
{
td->samples.insert( it, sd );
}
}
}
}