diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-02-02 12:52:59 +0000 |
---|---|---|
committer | David Monahan <david.monahan@arm.com> | 2020-02-03 14:51:47 +0000 |
commit | 9789702c0b276ca9518e590f30465da7e76a940f (patch) | |
tree | 08f3090bb8e22e84349253b8c924d626742f02f0 /src/profiling/CounterIdMap.cpp | |
parent | 8e0c7a66efc8d61787c43cdaeab3754e2905f623 (diff) | |
download | armnn-9789702c0b276ca9518e590f30465da7e76a940f.tar.gz |
IVGCVSW-4393 Register backend counters
Signed-off-by: David Monahan <david.monahan@arm.com>
Change-Id: I419ecc2fce4b7e0fcaeb6d1f9cb687c0b660125d
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CounterIdMap.cpp')
-rw-r--r-- | src/profiling/CounterIdMap.cpp | 6 |
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); |