mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
CompressThread body must be available.
This commit is contained in:
parent
a46d27f312
commit
e058bb34c1
@ -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 );
|
||||||
|
@ -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; }
|
||||||
|
Loading…
Reference in New Issue
Block a user