Monitor when new context switch data is received.

This commit is contained in:
Bartosz Taudul 2021-11-13 02:38:33 +01:00
parent 00834ed32b
commit 5b799e0e45
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3
2 changed files with 5 additions and 0 deletions

View File

@ -6597,6 +6597,10 @@ void Worker::ProcessSysTime( const QueueSysTime& ev )
void Worker::ProcessContextSwitch( const QueueContextSwitch& ev )
{
#ifndef TRACY_NO_STATISTICS
m_data.newContextSwitchesReceived = true;
#endif
const auto refTime = m_refTimeCtx + ev.time;
m_refTimeCtx = refTime;
const auto time = TscTime( refTime - m_data.baseTime );

View File

@ -304,6 +304,7 @@ private:
unordered_flat_map<uint64_t, Vector<Int48>> childSamples;
bool newFramesWereReceived = false;
bool callstackSamplesReady = false;
bool newContextSwitchesReceived = false;
bool ghostZonesReady = false;
bool ghostZonesPostponed = false;
bool symbolSamplesReady = false;