MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ProcessSysTime

Method ProcessSysTime

Source/ThirdParty/tracy/client/TracyProfiler.cpp:4530–4547  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4528
4529#ifdef TRACY_HAS_SYSTIME
4530void Profiler::ProcessSysTime()
4531{
4532 if( m_shutdown.load( std::memory_order_relaxed ) ) return;
4533 auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
4534 if( t - m_sysTimeLast > 100000000 ) // 100 ms
4535 {
4536 auto sysTime = m_sysTime.Get();
4537 if( sysTime >= 0 )
4538 {
4539 m_sysTimeLast = t;
4540
4541 TracyLfqPrepare( QueueType::SysTimeReport );
4542 MemWrite( &item->sysTime.time, GetTime() );
4543 MemWrite( &item->sysTime.sysTime, sysTime );
4544 TracyLfqCommit;
4545 }
4546 }
4547}
4548#endif
4549
4550void Profiler::HandleParameter( uint64_t payload )

Callers

nothing calls this directly

Calls 6

nowClass · 0.85
MemWriteFunction · 0.85
GetTimeFunction · 0.85
loadMethod · 0.45
countMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected