Allow checking if context switch data is available.

This commit is contained in:
Bartosz Taudul 2019-08-14 20:26:55 +02:00
parent 9a364fe5fe
commit a194c93740

View File

@ -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(); }