From 9789702c0b276ca9518e590f30465da7e76a940f Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Sun, 2 Feb 2020 12:52:59 +0000 Subject: IVGCVSW-4393 Register backend counters Signed-off-by: David Monahan Change-Id: I419ecc2fce4b7e0fcaeb6d1f9cb687c0b660125d Signed-off-by: Jim Flynn --- src/profiling/CounterIdMap.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/profiling/CounterIdMap.cpp') diff --git a/src/profiling/CounterIdMap.cpp b/src/profiling/CounterIdMap.cpp index 8ee80f913c..862600538b 100644 --- a/src/profiling/CounterIdMap.cpp +++ b/src/profiling/CounterIdMap.cpp @@ -21,6 +21,12 @@ void CounterIdMap::RegisterMapping(uint16_t globalCounterId, m_BackendCounterIdMap[backendIdPair] = globalCounterId; } +void CounterIdMap::Reset() +{ + m_GlobalCounterIdMap.clear(); + m_BackendCounterIdMap.clear(); +} + uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::BackendId& backendId) const { std::pair backendIdPair(backendCounterId, backendId); -- cgit v1.2.1