mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Replace duplicate samples.
This commit is contained in:
parent
26b13abac8
commit
90277953c7
@ -4621,10 +4621,14 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
|
||||
}
|
||||
else
|
||||
{
|
||||
if( td->samples.back().time.Val() <= t )
|
||||
if( td->samples.back().time.Val() < t )
|
||||
{
|
||||
td->samples.push_back_non_empty( sd );
|
||||
}
|
||||
else if( td->samples.back().time.Val() == t )
|
||||
{
|
||||
td->samples.back() = sd;
|
||||
}
|
||||
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; } );
|
||||
|
Loading…
Reference in New Issue
Block a user