1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Display count of per-cpu context switch data.

This commit is contained in:
Bartosz Taudul
2019-08-16 16:36:33 +02:00
parent a92034d59d
commit 8bc4258e29
3 changed files with 13 additions and 0 deletions
+1
View File
@@ -281,6 +281,7 @@ public:
uint64_t GetLockCount() const;
uint64_t GetPlotCount() const;
uint64_t GetContextSwitchCount() const;
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 GetCallstackPayloadCount() const { return m_data.callstackPayload.size() - 1; }