mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Pump symbols queue during profiler termination.
This commit is contained in:
parent
fe9c63b8d2
commit
3d13ec7018
@ -1862,6 +1862,11 @@ void Profiler::Worker()
|
|||||||
}
|
}
|
||||||
// End of connections loop
|
// End of connections loop
|
||||||
|
|
||||||
|
// Wait for symbols thread to terminate. Symbol resolution will continue in this thread.
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
while( s_symbolThreadGone.load() == false ) { YieldThread(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
// Client is exiting. Send items remaining in queues.
|
// Client is exiting. Send items remaining in queues.
|
||||||
for(;;)
|
for(;;)
|
||||||
{
|
{
|
||||||
@ -1886,6 +1891,11 @@ void Profiler::Worker()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
SymbolQueueItem si;
|
||||||
|
while( m_symbolQueue.try_dequeue( si ) ) HandleSymbolQueueItem( si );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send client termination notice to the server
|
// Send client termination notice to the server
|
||||||
@ -1909,6 +1919,10 @@ void Profiler::Worker()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#ifdef TRACY_HAS_CALLSTACK
|
||||||
|
SymbolQueueItem si;
|
||||||
|
while( m_symbolQueue.try_dequeue( si ) ) HandleSymbolQueueItem( si );
|
||||||
|
#endif
|
||||||
while( Dequeue( token ) == DequeueStatus::DataDequeued ) {}
|
while( Dequeue( token ) == DequeueStatus::DataDequeued ) {}
|
||||||
while( DequeueSerial() == DequeueStatus::DataDequeued ) {}
|
while( DequeueSerial() == DequeueStatus::DataDequeued ) {}
|
||||||
if( m_bufferOffset != m_bufferStart )
|
if( m_bufferOffset != m_bufferStart )
|
||||||
|
Loading…
Reference in New Issue
Block a user