mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +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() );
|
m_threadOrder.reserve( threadData.size() );
|
||||||
for( size_t i=m_threadOrder.size(); i<threadData.size(); i++ )
|
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 )
|
for( const auto& v : m_threadOrder )
|
||||||
|
Loading…
x
Reference in New Issue
Block a user