mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Local threads must have at least one zone captured.
This commit is contained in:
parent
d4f9810006
commit
4273939cf5
@ -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
|
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const
|
||||||
|
@ -397,7 +397,7 @@ public:
|
|||||||
const char* GetString( const StringRef& ref ) const;
|
const char* GetString( const StringRef& ref ) const;
|
||||||
const char* GetString( const StringIdx& idx ) const;
|
const char* GetString( const StringIdx& idx ) const;
|
||||||
const char* GetThreadName( uint64_t id ) 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;
|
const SourceLocation& GetSourceLocation( int16_t srcloc ) const;
|
||||||
std::pair<const char*, const char*> GetExternalName( uint64_t id ) const;
|
std::pair<const char*, const char*> GetExternalName( uint64_t id ) const;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user