diff options
author | James Conroy <james.conroy@arm.com> | 2020-02-06 18:34:52 +0000 |
---|---|---|
committer | Colm Donelan <colm.donelan@arm.com> | 2020-02-10 11:13:00 +0000 |
commit | 2dcd3fef30ad3ac41621f3f8b142632e912ea42d (patch) | |
tree | 3916a75d338e1d261a71c786d1c25d4ff144c1df /include | |
parent | 1398b75f03f8558756f11ec0f89dccea6e864c84 (diff) | |
download | armnn-2dcd3fef30ad3ac41621f3f8b142632e912ea42d.tar.gz |
IVGCVSW-4319 Implement Counter Status Querying
* Adds implementations for GetCounterStatus and
GetActiveCounters.
* Adds CheckCounterStatusQuery in ProfilingTests.
* Modifies Holder and ProfilingService to open
up access to CaptureData for use by
BackendProfiling.
Signed-off-by: James Conroy <james.conroy@arm.com>
Signed-off-by: Colm Donelan <Colm.Donelan@arm.com>
Change-Id: Iec47952545c0072a71088b12ca3dc31673fa9c51
Diffstat (limited to 'include')
-rw-r--r-- | include/armnn/backends/profiling/IBackendProfiling.hpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/include/armnn/backends/profiling/IBackendProfiling.hpp b/include/armnn/backends/profiling/IBackendProfiling.hpp index d3c52996f4..a649ece74f 100644 --- a/include/armnn/backends/profiling/IBackendProfiling.hpp +++ b/include/armnn/backends/profiling/IBackendProfiling.hpp @@ -30,6 +30,14 @@ struct Timestamp struct CounterStatus { + CounterStatus(uint16_t backendCounterId, + uint16_t globalCounterId, + bool enabled, + uint32_t samplingRateInMicroseconds) + : m_BackendCounterId(backendCounterId), + m_GlobalCounterId(globalCounterId), + m_Enabled(enabled), + m_SamplingRateInMicroseconds(samplingRateInMicroseconds) {} uint16_t m_BackendCounterId; uint16_t m_GlobalCounterId; bool m_Enabled; @@ -73,7 +81,7 @@ public: {} virtual std::unique_ptr<IRegisterBackendCounters> - GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID) = 0; + GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID) = 0; virtual std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() = 0; @@ -88,5 +96,7 @@ public: virtual bool IsProfilingEnabled() const = 0; }; + } // namespace profiling + } // namespace armnn
\ No newline at end of file |