mirror of
https://github.com/wolfpld/tracy.git
synced 2024-12-01 17:34:36 +00:00
Implement checking if frames are in use.
This commit is contained in:
parent
53632ccb5b
commit
23ebce2862
@ -2397,6 +2397,12 @@ size_t Worker::GetFullFrameCount( const FrameData& fd ) const
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool Worker::AreFramesUsed() const
|
||||||
|
{
|
||||||
|
if( m_data.frames.Data().size() > 1 ) return true;
|
||||||
|
return m_data.framesBase->frames.size() > 2;
|
||||||
|
}
|
||||||
|
|
||||||
int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
||||||
{
|
{
|
||||||
if( fd.continuous )
|
if( fd.continuous )
|
||||||
|
@ -463,6 +463,7 @@ public:
|
|||||||
std::mutex& GetDataLock() { return m_data.lock; }
|
std::mutex& GetDataLock() { return m_data.lock; }
|
||||||
size_t GetFrameCount( const FrameData& fd ) const { return fd.frames.size(); }
|
size_t GetFrameCount( const FrameData& fd ) const { return fd.frames.size(); }
|
||||||
size_t GetFullFrameCount( const FrameData& fd ) const;
|
size_t GetFullFrameCount( const FrameData& fd ) const;
|
||||||
|
bool AreFramesUsed() const;
|
||||||
int64_t GetLastTime() const { return m_data.lastTime; }
|
int64_t GetLastTime() const { return m_data.lastTime; }
|
||||||
uint64_t GetZoneCount() const { return m_data.zonesCnt; }
|
uint64_t GetZoneCount() const { return m_data.zonesCnt; }
|
||||||
uint64_t GetZoneExtraCount() const { return m_data.zoneExtra.size() - 1; }
|
uint64_t GetZoneExtraCount() const { return m_data.zoneExtra.size() - 1; }
|
||||||
|
Loading…
Reference in New Issue
Block a user