mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Add child samples count getters.
This commit is contained in:
parent
2f6adf3641
commit
34b80ac52f
@ -2003,6 +2003,16 @@ uint64_t Worker::GetContextSwitchPerCpuCount() const
|
|||||||
return cnt;
|
return cnt;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint64_t Worker::GetChildSamplesCountFull() const
|
||||||
|
{
|
||||||
|
uint64_t cnt = 0;
|
||||||
|
for( auto& v : m_data.childSamples )
|
||||||
|
{
|
||||||
|
cnt += v.second.size();
|
||||||
|
}
|
||||||
|
return cnt;
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
||||||
{
|
{
|
||||||
auto it = m_data.tidToPid.find( tid );
|
auto it = m_data.tidToPid.find( tid );
|
||||||
|
@ -445,6 +445,8 @@ public:
|
|||||||
uint64_t GetGhostZonesCount() const { return m_data.ghostCnt; }
|
uint64_t GetGhostZonesCount() const { return m_data.ghostCnt; }
|
||||||
uint32_t GetFrameImageCount() const { return (uint32_t)m_data.frameImage.size(); }
|
uint32_t GetFrameImageCount() const { return (uint32_t)m_data.frameImage.size(); }
|
||||||
uint64_t GetStringsCount() const { return m_data.strings.size() + m_data.stringData.size(); }
|
uint64_t GetStringsCount() const { return m_data.strings.size() + m_data.stringData.size(); }
|
||||||
|
uint64_t GetChildSamplesCountSyms() const { return m_data.childSamples.size(); }
|
||||||
|
uint64_t GetChildSamplesCountFull() 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…
Reference in New Issue
Block a user