mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Allow checking if thread is a fiber.
This commit is contained in:
parent
3ede2a1345
commit
0075050679
@ -2682,6 +2682,12 @@ bool Worker::IsThreadLocal( uint64_t id )
|
|||||||
return td && ( td->count > 0 || !td->samples.empty() );
|
return td && ( td->count > 0 || !td->samples.empty() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Worker::IsThreadFiber( uint64_t id )
|
||||||
|
{
|
||||||
|
auto td = RetrieveThread( id );
|
||||||
|
return td && ( td->isFiber );
|
||||||
|
}
|
||||||
|
|
||||||
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const
|
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const
|
||||||
{
|
{
|
||||||
if( srcloc < 0 )
|
if( srcloc < 0 )
|
||||||
|
@ -541,6 +541,7 @@ public:
|
|||||||
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 );
|
bool IsThreadLocal( uint64_t id );
|
||||||
|
bool IsThreadFiber( 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