From 1f0c18882cd81fc15889d4355673a8f5796c3824 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 29 Oct 2019 23:05:14 +0100 Subject: [PATCH] Don't collect sys time after application has exited. --- client/TracyProfiler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index 9aa5d04a..ed46c174 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -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 {