mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 07:53:52 +00:00
Getter for source location zones.
This commit is contained in:
parent
9830fa297e
commit
c807b3f7ef
@ -405,6 +405,13 @@ std::vector<int32_t> Worker::GetMatchingSourceLocation( const char* query ) cons
|
|||||||
return match;
|
return match;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const Vector<ZoneEvent*>& Worker::GetZonesForSourceLocation( int32_t srcloc ) const
|
||||||
|
{
|
||||||
|
static const Vector<ZoneEvent*> empty;
|
||||||
|
auto it = m_data.sourceLocationZones.find( srcloc );
|
||||||
|
return it != m_data.sourceLocationZones.end() ? it->second : empty;
|
||||||
|
}
|
||||||
|
|
||||||
void Worker::Exec()
|
void Worker::Exec()
|
||||||
{
|
{
|
||||||
timeval tv;
|
timeval tv;
|
||||||
|
@ -103,6 +103,7 @@ public:
|
|||||||
const SourceLocation& GetSourceLocation( int32_t srcloc ) const;
|
const SourceLocation& GetSourceLocation( int32_t srcloc ) const;
|
||||||
|
|
||||||
std::vector<int32_t> GetMatchingSourceLocation( const char* query ) const;
|
std::vector<int32_t> GetMatchingSourceLocation( const char* query ) const;
|
||||||
|
const Vector<ZoneEvent*>& GetZonesForSourceLocation( int32_t srcloc ) const;
|
||||||
|
|
||||||
NonRecursiveBenaphore& GetMbpsDataLock() { return m_mbpsData.lock; }
|
NonRecursiveBenaphore& GetMbpsDataLock() { return m_mbpsData.lock; }
|
||||||
const std::vector<float>& GetMbpsData() const { return m_mbpsData.mbps; }
|
const std::vector<float>& GetMbpsData() const { return m_mbpsData.mbps; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user