mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 22:44:34 +00:00
Send main thread name.
This commit is contained in:
parent
2faa1abb21
commit
031818dff6
@ -231,7 +231,14 @@ bool Profiler::HandleServerQuery()
|
||||
SendString( ptr, (const char*)ptr, QueueType::StringData );
|
||||
break;
|
||||
case ServerQueryThreadString:
|
||||
SendString( ptr, GetThreadName( ptr ), QueueType::ThreadName );
|
||||
if( ptr == m_mainThread )
|
||||
{
|
||||
SendString( ptr, "Main thread", QueueType::ThreadName );
|
||||
}
|
||||
else
|
||||
{
|
||||
SendString( ptr, GetThreadName( ptr ), QueueType::ThreadName );
|
||||
}
|
||||
break;
|
||||
default:
|
||||
assert( false );
|
||||
|
Loading…
Reference in New Issue
Block a user