diff options
author | Finn Williams <Finn.Williams@arm.com> | 2020-04-09 16:05:28 +0100 |
---|---|---|
committer | Finn Williams <Finn.Williams@arm.com> | 2020-04-10 14:48:56 +0100 |
commit | fe5a24beeef6e9a41366e694f41093565e748048 (patch) | |
tree | 72c660062f9c8287e54176dfbd8c5aa0269f2e51 /src/profiling/PeriodicCounterSelectionCommandHandler.hpp | |
parent | bb446e576e120512d5752a5d6dc1ddc636f563ba (diff) | |
download | armnn-fe5a24beeef6e9a41366e694f41093565e748048.tar.gz |
IVGCVSW-4666 Call EnableProfiling when state switches to active
* Move the call to EnableProfiling() into ConnectionAcknowledgedHandler
* Fix an issue with MockGatord forcing some command handlers to be quiet
* Add some small unrelated improvements and typo fixes to the
periodic counter command handlers
Signed-off-by: Finn Williams <Finn.Williams@arm.com>
Change-Id: I9e6066b78d1f782cfaf27c11571c0ec5cb5d126f
Diffstat (limited to 'src/profiling/PeriodicCounterSelectionCommandHandler.hpp')
-rw-r--r-- | src/profiling/PeriodicCounterSelectionCommandHandler.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/profiling/PeriodicCounterSelectionCommandHandler.hpp b/src/profiling/PeriodicCounterSelectionCommandHandler.hpp index 437d7128be..b59d84cffa 100644 --- a/src/profiling/PeriodicCounterSelectionCommandHandler.hpp +++ b/src/profiling/PeriodicCounterSelectionCommandHandler.hpp @@ -37,7 +37,7 @@ public: uint32_t version, const std::unordered_map<BackendId, std::shared_ptr<armnn::profiling::IBackendProfilingContext>>& - backendProfilingContext, + backendProfilingContexts, const ICounterMappings& counterIdMap, Holder& captureDataHolder, const uint16_t maxArmnnCounterId, @@ -46,7 +46,7 @@ public: ISendCounterPacket& sendCounterPacket, const ProfilingStateMachine& profilingStateMachine) : CommandHandlerFunctor(familyId, packetId, version) - , m_BackendProfilingContext(backendProfilingContext) + , m_BackendProfilingContexts(backendProfilingContexts) , m_CounterIdMap(counterIdMap) , m_CaptureDataHolder(captureDataHolder) , m_MaxArmCounterId(maxArmnnCounterId) @@ -66,7 +66,7 @@ private: std::unordered_map<armnn::BackendId, std::vector<uint16_t>> m_BackendCounterMap; const std::unordered_map<BackendId, - std::shared_ptr<armnn::profiling::IBackendProfilingContext>>& m_BackendProfilingContext; + std::shared_ptr<armnn::profiling::IBackendProfilingContext>>& m_BackendProfilingContexts; const ICounterMappings& m_CounterIdMap; Holder& m_CaptureDataHolder; const uint16_t m_MaxArmCounterId; @@ -82,7 +82,7 @@ private: const std::vector<uint16_t> counterIds) { Optional<std::string> errorMsg = - m_BackendProfilingContext.at(backendId)->ActivateCounters(capturePeriod, counterIds); + m_BackendProfilingContexts.at(backendId)->ActivateCounters(capturePeriod, counterIds); if(errorMsg.has_value()) { @@ -92,8 +92,8 @@ private: } void ParseData(const Packet& packet, CaptureData& captureData); std::set<armnn::BackendId> ProcessBackendCounterIds(const u_int32_t capturePeriod, - std::set<uint16_t> newCounterIds, - std::set<uint16_t> unusedCounterIds); + const std::set<uint16_t> newCounterIds, + const std::set<uint16_t> unusedCounterIds); }; |