mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Observe thread grouping hint when a new thread appears.
This commit is contained in:
parent
1390c8c9e3
commit
a1064a3d26
@ -368,7 +368,8 @@ void View::DrawTimeline()
|
||||
m_threadOrder.reserve( threadData.size() );
|
||||
for( size_t i=m_threadOrder.size(); i<threadData.size(); i++ )
|
||||
{
|
||||
m_threadOrder.push_back( threadData[i] );
|
||||
auto it = std::upper_bound( m_threadOrder.begin(), m_threadOrder.end(), threadData[i]->groupHint, []( const auto& lhs, const auto& rhs ) { return lhs < rhs->groupHint; } );
|
||||
m_threadOrder.insert( it, threadData[i] );
|
||||
}
|
||||
}
|
||||
for( const auto& v : m_threadOrder )
|
||||
|
Loading…
Reference in New Issue
Block a user