mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Only check thread string when adding a new thread.
This commit is contained in:
parent
6fc0bc881c
commit
3df0abd164
@ -442,7 +442,6 @@ void View::ProcessZoneBegin( const QueueZoneBegin& ev )
|
||||
auto zone = m_slab.Alloc<Event>();
|
||||
|
||||
CheckSourceLocation( ev.srcloc );
|
||||
CheckThreadString( ev.thread );
|
||||
|
||||
zone->start = ev.time * m_timerMul;
|
||||
zone->end = -1;
|
||||
@ -672,6 +671,7 @@ void View::NewZone( Event* zone, uint64_t thread )
|
||||
auto it = m_threadMap.find( thread );
|
||||
if( it == m_threadMap.end() )
|
||||
{
|
||||
CheckThreadString( thread );
|
||||
m_threadMap.emplace( thread, (uint32_t)m_threads.size() );
|
||||
m_threads.push_back( new ThreadData { thread, true } );
|
||||
timeline = &m_threads.back()->timeline;
|
||||
|
Loading…
Reference in New Issue
Block a user