mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Store thread id in thread data.
This commit is contained in:
parent
6525e1b3c1
commit
2610004fa5
@ -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
|
||||
|
@ -35,6 +35,7 @@ public:
|
||||
private:
|
||||
struct ThreadData
|
||||
{
|
||||
uint64_t id;
|
||||
Vector<Event*> timeline;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user