mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 12:23:53 +00:00
Context switch samples counting.
This commit is contained in:
parent
8ef212c26e
commit
d8d6423266
@ -2220,6 +2220,16 @@ uint64_t Worker::GetChildSamplesCountFull() const
|
|||||||
}
|
}
|
||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t Worker::GetContextSwitchSampleCount() const
|
||||||
|
{
|
||||||
|
uint64_t cnt = 0;
|
||||||
|
for( auto& v : m_data.threads )
|
||||||
|
{
|
||||||
|
cnt += v->ctxSwitchSamples.size();
|
||||||
|
}
|
||||||
|
return cnt;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
||||||
|
@ -465,6 +465,7 @@ public:
|
|||||||
#ifndef TRACY_NO_STATISTICS
|
#ifndef TRACY_NO_STATISTICS
|
||||||
uint64_t GetChildSamplesCountSyms() const { return m_data.childSamples.size(); }
|
uint64_t GetChildSamplesCountSyms() const { return m_data.childSamples.size(); }
|
||||||
uint64_t GetChildSamplesCountFull() const;
|
uint64_t GetChildSamplesCountFull() const;
|
||||||
|
uint64_t GetContextSwitchSampleCount() const;
|
||||||
#endif
|
#endif
|
||||||
uint64_t GetFrameOffset() const { return m_data.frameOffset; }
|
uint64_t GetFrameOffset() const { return m_data.frameOffset; }
|
||||||
const FrameData* GetFramesBase() const { return m_data.framesBase; }
|
const FrameData* GetFramesBase() const { return m_data.framesBase; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user