mirror of
https://github.com/wolfpld/tracy.git
synced 2026-09-03 08:58:26 +00:00
Handle source code queries in no-callstack builds.
The symbol worker thread, which answers source code queries, only exists when call stack support is compiled in. Handle the query directly in the main thread so it is always answered and the server can terminate.
This commit is contained in:
@@ -3980,7 +3980,14 @@ bool Profiler::HandleServerQuery()
|
||||
break;
|
||||
#endif
|
||||
case ServerQuerySourceCode:
|
||||
#ifdef TRACY_HAS_CALLSTACK
|
||||
QueueSourceCodeQuery( uint32_t( ptr ) );
|
||||
#else
|
||||
TRACY_ASSERT( m_queryData );
|
||||
HandleSourceCodeQuery( m_queryData, m_queryImage, uint32_t( ptr ) );
|
||||
m_queryData = nullptr;
|
||||
m_queryImage = nullptr;
|
||||
#endif
|
||||
break;
|
||||
case ServerQueryDataTransfer:
|
||||
if( m_queryData )
|
||||
|
||||
Reference in New Issue
Block a user