diff --git a/server/TracyWorker.cpp b/server/TracyWorker.cpp index 1278701d..bc23d8ba 100644 --- a/server/TracyWorker.cpp +++ b/server/TracyWorker.cpp @@ -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 { if( fd.continuous ) diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 854514b7..e432f407 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -463,6 +463,7 @@ public: std::mutex& GetDataLock() { return m_data.lock; } size_t GetFrameCount( const FrameData& fd ) const { return fd.frames.size(); } size_t GetFullFrameCount( const FrameData& fd ) const; + bool AreFramesUsed() const; int64_t GetLastTime() const { return m_data.lastTime; } uint64_t GetZoneCount() const { return m_data.zonesCnt; } uint64_t GetZoneExtraCount() const { return m_data.zoneExtra.size() - 1; }