Context switch samples counting.

This commit is contained in:
Bartosz Taudul
2021-11-13 02:47:39 +01:00
parent 8ef212c26e
commit d8d6423266
2 changed files with 11 additions and 0 deletions

View File

@@ -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