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

Add accessors.

This commit is contained in:
Bartosz Taudul
2019-08-18 01:51:02 +02:00
parent 103645c2fa
commit 62dbe522c5
2 changed files with 9 additions and 0 deletions
+7
View File
@@ -1653,6 +1653,13 @@ uint64_t Worker::GetContextSwitchPerCpuCount() const
return cnt;
}
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
{
auto it = m_data.tidToPid.find( tid );
if( it == m_data.tidToPid.end() ) return 0;
return it->second;
}
const ContextSwitch* const Worker::GetContextSwitchDataImpl( uint64_t thread )
{
auto it = m_data.ctxSwitch.find( thread );