mirror of
https://github.com/wolfpld/tracy
synced 2025-05-02 13:43:52 +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
|
#ifdef TRACY_HAS_SYSTIME
|
||||||
void Profiler::ProcessSysTime()
|
void Profiler::ProcessSysTime()
|
||||||
{
|
{
|
||||||
|
if( m_shutdown.load( std::memory_order_relaxed ) ) return;
|
||||||
auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
|
auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
|
||||||
if( t - m_sysTimeLast > 100000000 ) // 100 ms
|
if( t - m_sysTimeLast > 100000000 ) // 100 ms
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user