Store thread id in thread data.

This commit is contained in:
Bartosz Taudul 2017-09-22 01:58:59 +02:00
parent 6525e1b3c1
commit 2610004fa5
2 changed files with 2 additions and 1 deletions

View File

@ -350,7 +350,7 @@ void View::NewZone( Event* zone, uint64_t thread )
if( it == m_threadMap.end() )
{
m_threadMap.emplace( thread, m_threads.size() );
m_threads.emplace_back();
m_threads.emplace_back( ThreadData { thread } );
timeline = &m_threads.back().timeline;
}
else

View File

@ -35,6 +35,7 @@ public:
private:
struct ThreadData
{
uint64_t id;
Vector<Event*> timeline;
};