mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-23 06:44:35 +00:00
Handle one more case of duplicate samples.
This commit is contained in:
parent
625d380f7a
commit
7f5e23f2ac
@ -4634,7 +4634,14 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
|
|||||||
else
|
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; } );
|
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 );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user