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.cpp | |
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.cpp')
-rw-r--r-- | src/profiling/PeriodicCounterSelectionCommandHandler.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/profiling/PeriodicCounterSelectionCommandHandler.cpp b/src/profiling/PeriodicCounterSelectionCommandHandler.cpp index d218433d93..4e3e6e554b 100644 --- a/src/profiling/PeriodicCounterSelectionCommandHandler.cpp +++ b/src/profiling/PeriodicCounterSelectionCommandHandler.cpp @@ -140,7 +140,6 @@ void PeriodicCounterSelectionCommandHandler::operator()(const Packet& packet) // save the new backend counter ids for next time m_PrevBackendCounterIds = backendCounterIds; - // Set the capture data with only the valid armnn counter UIDs m_CaptureDataHolder.SetCaptureData(capturePeriod, {validCounterIds.begin(), backendIdStart}, activeBackends); @@ -168,8 +167,8 @@ void PeriodicCounterSelectionCommandHandler::operator()(const Packet& packet) std::set<armnn::BackendId> PeriodicCounterSelectionCommandHandler::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) { std::set<armnn::BackendId> changedBackends; std::set<armnn::BackendId> activeBackends = m_CaptureDataHolder.GetCaptureData().GetActiveBackends(); |