mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 04:23:51 +00:00
Don't collect sys time after application has exited.
This commit is contained in:
parent
079e21ea43
commit
1f0c18882c
@ -2461,6 +2461,7 @@ void Profiler::CutCallstack( void* callstack, const char* skipBefore )
|
||||
#ifdef TRACY_HAS_SYSTIME
|
||||
void Profiler::ProcessSysTime()
|
||||
{
|
||||
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
|
||||
auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
|
||||
if( t - m_sysTimeLast > 100000000 ) // 100 ms
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user