mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-30 04:25:27 +00:00
Add sys call counter.
This commit is contained in:
@@ -1840,6 +1840,16 @@ uint64_t Worker::GetContextSwitchPerCpuCount() const
|
||||
return cnt;
|
||||
}
|
||||
|
||||
uint64_t Worker::GetSysCallCount() const
|
||||
{
|
||||
uint64_t cnt = 0;
|
||||
for( auto& td : m_data.threads )
|
||||
{
|
||||
cnt += td->sysCalls.size();
|
||||
}
|
||||
return cnt;
|
||||
}
|
||||
|
||||
uint64_t Worker::GetPidFromTid( uint64_t tid ) const
|
||||
{
|
||||
auto it = m_data.tidToPid.find( tid );
|
||||
|
||||
@@ -298,6 +298,7 @@ public:
|
||||
uint64_t GetContextSwitchPerCpuCount() const;
|
||||
bool HasContextSwitches() const { return !m_data.ctxSwitch.empty(); }
|
||||
uint64_t GetSrcLocCount() const { return m_data.sourceLocationPayload.size() + m_data.sourceLocation.size(); }
|
||||
uint64_t GetSysCallCount() const;
|
||||
uint64_t GetCallstackPayloadCount() const { return m_data.callstackPayload.size() - 1; }
|
||||
uint64_t GetCallstackFrameCount() const { return m_data.callstackFrameMap.size(); }
|
||||
uint32_t GetFrameImageCount() const { return (uint32_t)m_data.frameImage.size(); }
|
||||
|
||||
Reference in New Issue
Block a user