mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +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() )
|
if( it == m_threadMap.end() )
|
||||||
{
|
{
|
||||||
m_threadMap.emplace( thread, m_threads.size() );
|
m_threadMap.emplace( thread, m_threads.size() );
|
||||||
m_threads.emplace_back();
|
m_threads.emplace_back( ThreadData { thread } );
|
||||||
timeline = &m_threads.back().timeline;
|
timeline = &m_threads.back().timeline;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -35,6 +35,7 @@ public:
|
|||||||
private:
|
private:
|
||||||
struct ThreadData
|
struct ThreadData
|
||||||
{
|
{
|
||||||
|
uint64_t id;
|
||||||
Vector<Event*> timeline;
|
Vector<Event*> timeline;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user