CompressThread body must be available.

This commit is contained in:
Bartosz Taudul 2018-05-03 18:43:51 +02:00
parent a46d27f312
commit e058bb34c1
2 changed files with 5 additions and 13 deletions

View File

@ -763,18 +763,6 @@ const Worker::SourceLocationZones& Worker::GetZonesForSourceLocation( int32_t sr
} }
#endif #endif
uint16_t Worker::CompressThread( uint64_t thread )
{
if( m_data.threadLast.first == thread )
{
return m_data.threadLast.second;
}
else
{
return CompressThreadReal( thread );
}
}
uint16_t Worker::CompressThreadReal( uint64_t thread ) uint16_t Worker::CompressThreadReal( uint64_t thread )
{ {
auto it = m_data.threadMap.find( thread ); auto it = m_data.threadMap.find( thread );

View File

@ -162,7 +162,11 @@ public:
bool AreSourceLocationZonesReady() const { return m_data.sourceLocationZonesReady; } bool AreSourceLocationZonesReady() const { return m_data.sourceLocationZonesReady; }
#endif #endif
tracy_force_inline uint16_t CompressThread( uint64_t thread ); tracy_force_inline uint16_t CompressThread( uint64_t thread )
{
if( m_data.threadLast.first == thread ) return m_data.threadLast.second;
return CompressThreadReal( thread );
}
tracy_force_inline uint64_t DecompressThread( uint16_t thread ) const { assert( thread < m_data.threadExpand.size() ); return m_data.threadExpand[thread]; } tracy_force_inline uint64_t DecompressThread( uint16_t thread ) const { assert( thread < m_data.threadExpand.size() ); return m_data.threadExpand[thread]; }
NonRecursiveBenaphore& GetMbpsDataLock() { return m_mbpsData.lock; } NonRecursiveBenaphore& GetMbpsDataLock() { return m_mbpsData.lock; }