mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Context switch samples counting.
This commit is contained in:
@@ -2220,6 +2220,16 @@ uint64_t Worker::GetChildSamplesCountFull() const
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
uint64_t Worker::GetContextSwitchSampleCount() const
|
||||
{
|
||||
uint64_t cnt = 0;
|
||||
for( auto& v : m_data.threads )
|
||||
{
|
||||
cnt += v->ctxSwitchSamples.size();
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
#endif
|
||||
|
||||
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
||||
|
||||
Reference in New Issue
Block a user