aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/PeriodicCounterSelectionCommandHandler.hpp
diff options
context:
space:
mode:
authorCathal Corbett <cathal.corbett@arm.com>2022-03-04 12:11:09 +0000
committerCathal Corbett <cathal.corbett@arm.com>2022-03-04 12:11:09 +0000
commit6f073727ad98d94f43a3938ddeac3f5a231ad959 (patch)
treed691d5f28846d66729cd0b4c52761d4d9a90305f /src/profiling/PeriodicCounterSelectionCommandHandler.hpp
parentae91a5e058da31e912c0768f516b2ef013c3b39e (diff)
downloadarmnn-6f073727ad98d94f43a3938ddeac3f5a231ad959.tar.gz
IVGCVSW-6814 Remove references to armnn:BackendId in the profiling code
Signed-off-by: Cathal Corbett <cathal.corbett@arm.com> Change-Id: Ib399a5eee9e52882800ec3e02e4173424a7c19b1
Diffstat (limited to 'src/profiling/PeriodicCounterSelectionCommandHandler.hpp')
-rw-r--r--src/profiling/PeriodicCounterSelectionCommandHandler.hpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/profiling/PeriodicCounterSelectionCommandHandler.hpp b/src/profiling/PeriodicCounterSelectionCommandHandler.hpp
index e8cdf0e5aa..4d94ba1010 100644
--- a/src/profiling/PeriodicCounterSelectionCommandHandler.hpp
+++ b/src/profiling/PeriodicCounterSelectionCommandHandler.hpp
@@ -35,7 +35,7 @@ public:
PeriodicCounterSelectionCommandHandler(uint32_t familyId,
uint32_t packetId,
uint32_t version,
- const std::unordered_map<armnn::BackendId,
+ const std::unordered_map<std::string,
std::shared_ptr<IBackendProfilingContext>>&
backendProfilingContexts,
const ICounterMappings& counterIdMap,
@@ -64,8 +64,8 @@ public:
private:
- std::unordered_map<armnn::BackendId, std::vector<uint16_t>> m_BackendCounterMap;
- const std::unordered_map<armnn::BackendId,
+ std::unordered_map<std::string, std::vector<uint16_t>> m_BackendCounterMap;
+ const std::unordered_map<std::string,
std::shared_ptr<IBackendProfilingContext>>& m_BackendProfilingContexts;
const ICounterMappings& m_CounterIdMap;
Holder& m_CaptureDataHolder;
@@ -77,9 +77,9 @@ private:
ISendCounterPacket& m_SendCounterPacket;
const ProfilingStateMachine& m_StateMachine;
- void ActivateBackedCounters(const armnn::BackendId backendId,
- const uint32_t capturePeriod,
- const std::vector<uint16_t> counterIds)
+ void ActivateBackendCounters(const std::string backendId,
+ const uint32_t capturePeriod,
+ const std::vector<uint16_t> counterIds)
{
armnn::Optional<std::string> errorMsg =
m_BackendProfilingContexts.at(backendId)->ActivateCounters(capturePeriod, counterIds);
@@ -91,7 +91,7 @@ private:
}
}
void ParseData(const arm::pipe::Packet& packet, CaptureData& captureData);
- std::set<armnn::BackendId> ProcessBackendCounterIds(const uint32_t capturePeriod,
+ std::set<std::string> ProcessBackendCounterIds(const uint32_t capturePeriod,
const std::set<uint16_t> newCounterIds,
const std::set<uint16_t> unusedCounterIds);