diff options
author | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-14 21:26:55 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf.pld@gmail.com> | 2019-08-14 21:26:55 +0300 |
commit | a194c937400418f37eae1ee5224acd6d93731f12 (patch) | |
tree | 7eb9852769e6c06275a7672552c867917d4dcf08 /server/TracyWorker.hpp | |
parent | 9a364fe5fe14724a4cfc11c81d94b87f8dc46465 (diff) |
Allow checking if context switch data is available.
Diffstat (limited to 'server/TracyWorker.hpp')
-rw-r--r-- | server/TracyWorker.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/TracyWorker.hpp b/server/TracyWorker.hpp index 73a343fa..74fa9e64 100644 --- a/server/TracyWorker.hpp +++ b/server/TracyWorker.hpp @@ -278,6 +278,7 @@ public: uint64_t GetLockCount() const; uint64_t GetPlotCount() const; uint64_t GetContextSwitchCount() 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; } uint64_t GetCallstackFrameCount() const { return m_data.callstackFrameMap.size(); } |