Local threads must have at least one zone captured.

This commit is contained in:
Bartosz Taudul 2020-02-22 18:51:53 +01:00
parent d4f9810006
commit 4273939cf5
2 changed files with 3 additions and 3 deletions

View File

@ -2095,9 +2095,9 @@ const char* Worker::GetThreadName( uint64_t id ) const
}
}
bool Worker::IsThreadLocal( uint64_t id ) const
bool Worker::IsThreadLocal( uint64_t id )
{
return m_data.localThreadCompress.Exists( id );
return m_data.localThreadCompress.Exists( id ) && RetrieveThread( id )->count > 0;
}
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const

View File

@ -397,7 +397,7 @@ public:
const char* GetString( const StringRef& ref ) const;
const char* GetString( const StringIdx& idx ) const;
const char* GetThreadName( uint64_t id ) const;
bool IsThreadLocal( uint64_t id ) const;
bool IsThreadLocal( uint64_t id );
const SourceLocation& GetSourceLocation( int16_t srcloc ) const;
std::pair<const char*, const char*> GetExternalName( uint64_t id ) const;