mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Allow determining whether thread is local to profiled program.
This commit is contained in:
parent
cef7e4b8d0
commit
c212661714
@ -1819,6 +1819,11 @@ const char* Worker::GetThreadString( uint64_t id ) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Worker::IsThreadLocal( uint64_t id ) const
|
||||||
|
{
|
||||||
|
return m_data.threadMap.find( id ) != m_data.threadMap.end();
|
||||||
|
}
|
||||||
|
|
||||||
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const
|
const SourceLocation& Worker::GetSourceLocation( int16_t srcloc ) const
|
||||||
{
|
{
|
||||||
if( srcloc < 0 )
|
if( srcloc < 0 )
|
||||||
|
@ -332,6 +332,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* GetThreadString( uint64_t id ) const;
|
const char* GetThreadString( uint64_t id ) const;
|
||||||
|
bool IsThreadLocal( uint64_t id ) const;
|
||||||
const SourceLocation& GetSourceLocation( int16_t srcloc ) const;
|
const SourceLocation& GetSourceLocation( int16_t srcloc ) const;
|
||||||
|
|
||||||
const char* GetZoneName( const SourceLocation& srcloc ) const;
|
const char* GetZoneName( const SourceLocation& srcloc ) const;
|
||||||
|
Loading…
Reference in New Issue
Block a user