1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Add child samples count getters.

This commit is contained in:
Bartosz Taudul
2021-04-18 15:03:42 +02:00
parent 2f6adf3641
commit 34b80ac52f
2 changed files with 12 additions and 0 deletions
+10
View File
@@ -2003,6 +2003,16 @@ uint64_t Worker::GetContextSwitchPerCpuCount() const
return cnt;
}
uint64_t Worker::GetChildSamplesCountFull() const
{
uint64_t cnt = 0;
for( auto& v : m_data.childSamples )
{
cnt += v.second.size();
}
return cnt;
}
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
{
auto it = m_data.tidToPid.find( tid );