aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CounterIdMap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/profiling/CounterIdMap.cpp')
-rw-r--r--src/profiling/CounterIdMap.cpp6
1 files changed, 6 insertions, 0 deletions
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<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId);