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

Force inline compress/decompress thread id.

This commit is contained in:
Bartosz Taudul
2018-03-24 01:31:58 +01:00
parent c0577fd5b2
commit 6a4e58b545
2 changed files with 9 additions and 9 deletions
+6 -7
View File
@@ -436,17 +436,16 @@ uint16_t Worker::CompressThread( uint64_t thread )
}
else
{
auto sz = m_data.threadExpand.size();
m_data.threadExpand.push_back( thread );
m_data.threadMap.emplace( thread, sz );
return sz;
return CompressThreadNew( thread );
}
}
uint64_t Worker::DecompressThread( uint16_t thread ) const
uint16_t Worker::CompressThreadNew( uint64_t thread )
{
assert( thread < m_data.threadExpand.size() );
return m_data.threadExpand[thread];
auto sz = m_data.threadExpand.size();
m_data.threadExpand.push_back( thread );
m_data.threadMap.emplace( thread, sz );
return sz;
}
void Worker::Exec()