1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Mirror thread data in a reorderable vector.

This commit is contained in:
Bartosz Taudul
2019-03-24 13:37:43 +01:00
parent 6ad820a76a
commit e957590350
2 changed files with 13 additions and 2 deletions
+12 -2
View File
@@ -1979,10 +1979,20 @@ void View::DrawZones()
}
}
auto& crash = m_worker.GetCrashEvent();
// zones
const auto& threadData = m_worker.GetThreadData();
if( threadData.size() != m_threadOrder.size() )
{
m_threadOrder.reserve( threadData.size() );
for( int i=m_threadOrder.size(); i<threadData.size(); i++ )
{
m_threadOrder.push_back( threadData[i] );
}
}
auto& crash = m_worker.GetCrashEvent();
LockHighlight nextLockHighlight { -1 };
for( const auto& v : m_worker.GetThreadData() )
for( const auto& v : m_threadOrder )
{
auto& vis = Vis( v );
if( !vis.visible )