mirror of
https://github.com/wolfpld/tracy
synced 2025-05-08 16:03:53 +00:00
Add lock, plot counts to worker.
This commit is contained in:
parent
237bb06dd6
commit
a51da71fa4
@ -874,6 +874,29 @@ Worker::~Worker()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t Worker::GetLockCount() const
|
||||||
|
{
|
||||||
|
uint64_t cnt = 0;
|
||||||
|
for( auto& l : m_data.lockMap )
|
||||||
|
{
|
||||||
|
cnt += l.second.timeline.size();
|
||||||
|
}
|
||||||
|
return cnt;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint64_t Worker::GetPlotCount() const
|
||||||
|
{
|
||||||
|
uint64_t cnt = 0;
|
||||||
|
for( auto& p : m_data.plots.Data() )
|
||||||
|
{
|
||||||
|
if( p->type != PlotType::Memory )
|
||||||
|
{
|
||||||
|
cnt += p->data.size();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return cnt;
|
||||||
|
}
|
||||||
|
|
||||||
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 )
|
||||||
|
@ -182,6 +182,8 @@ public:
|
|||||||
int64_t GetTimeBegin() const { return GetFrameBegin( *m_data.framesBase, 0 ); }
|
int64_t GetTimeBegin() const { return GetFrameBegin( *m_data.framesBase, 0 ); }
|
||||||
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 GetLockCount() const;
|
||||||
|
uint64_t GetPlotCount() const;
|
||||||
uint64_t GetFrameOffset() const { return m_data.frameOffset; }
|
uint64_t GetFrameOffset() const { return m_data.frameOffset; }
|
||||||
const FrameData* GetFramesBase() const { return m_data.framesBase; }
|
const FrameData* GetFramesBase() const { return m_data.framesBase; }
|
||||||
const Vector<FrameData*>& GetFrames() const { return m_data.frames.Data(); }
|
const Vector<FrameData*>& GetFrames() const { return m_data.frames.Data(); }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user