mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-25 15:34:36 +00:00
Add first time getter.
This commit is contained in:
parent
b89bfd44f1
commit
c91b052c80
@ -2173,6 +2173,13 @@ bool Worker::AreFramesUsed() const
|
||||
return m_data.framesBase->frames.size() > 2;
|
||||
}
|
||||
|
||||
int64_t Worker::GetFirstTime() const
|
||||
{
|
||||
if( m_data.frameOffset == 0 ) return 0;
|
||||
assert( m_data.framesBase->frames.size() >= 2 );
|
||||
return m_data.framesBase->frames[2].start;
|
||||
}
|
||||
|
||||
int64_t Worker::GetFrameTime( const FrameData& fd, size_t idx ) const
|
||||
{
|
||||
if( fd.continuous )
|
||||
|
@ -461,6 +461,7 @@ public:
|
||||
size_t GetFrameCount( const FrameData& fd ) const { return fd.frames.size(); }
|
||||
size_t GetFullFrameCount( const FrameData& fd ) const;
|
||||
bool AreFramesUsed() const;
|
||||
int64_t GetFirstTime() 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; }
|
||||
|
Loading…
Reference in New Issue
Block a user