1
0
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:
Bartosz Taudul 2019-10-29 23:05:14 +01:00
parent 079e21ea43
commit 1f0c18882c

View File

@ -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
{