mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Non-consecutive stack samples are no longer present.
This commit is contained in:
parent
6c0c508280
commit
8a81d2210c
@ -4893,26 +4893,8 @@ void Worker::ProcessCallstackSample( const QueueCallstackSample& ev )
|
||||
}
|
||||
else
|
||||
{
|
||||
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; } );
|
||||
if( it->time.Val() == t )
|
||||
{
|
||||
*it = sd;
|
||||
}
|
||||
else
|
||||
{
|
||||
td->samples.insert( it, sd );
|
||||
}
|
||||
}
|
||||
assert( td->samples.back().time.Val() < t );
|
||||
td->samples.push_back_non_empty( sd );
|
||||
}
|
||||
|
||||
#ifndef TRACY_NO_STATISTICS
|
||||
|
Loading…
Reference in New Issue
Block a user