mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
Monitor when new context switch data is received.
This commit is contained in:
parent
00834ed32b
commit
5b799e0e45
@ -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 );
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user