diff options
author | Jim Flynn <jim.flynn@arm.com> | 2020-01-30 14:10:55 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2020-02-02 19:32:41 +0000 |
commit | 8e0c7a66efc8d61787c43cdaeab3754e2905f623 (patch) | |
tree | 37f0de44d4e012f4c24a831add7d7b2817571ac1 /src/profiling/CounterIdMap.cpp | |
parent | 5e51cd803c7d926b2a9bd7c680c8d59fe100c2f2 (diff) | |
download | armnn-8e0c7a66efc8d61787c43cdaeab3754e2905f623.tar.gz |
IVGCVSW-4394 Add CounterIdMap to Profiling Service
Change-Id: I416397a7855fe45319b4801252e141b78f0325f0
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CounterIdMap.cpp')
-rw-r--r-- | src/profiling/CounterIdMap.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profiling/CounterIdMap.cpp b/src/profiling/CounterIdMap.cpp index a925fb9cb4..8ee80f913c 100644 --- a/src/profiling/CounterIdMap.cpp +++ b/src/profiling/CounterIdMap.cpp @@ -4,8 +4,8 @@ // #include "CounterIdMap.hpp" #include "armnn/BackendId.hpp" -#include <map> #include <armnn/Exceptions.hpp> +#include <map> namespace armnn { @@ -21,7 +21,7 @@ void CounterIdMap::RegisterMapping(uint16_t globalCounterId, m_BackendCounterIdMap[backendIdPair] = globalCounterId; } -uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::BackendId& backendId) +uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::BackendId& backendId) const { std::pair<uint16_t, armnn::BackendId> backendIdPair(backendCounterId, backendId); auto it = m_BackendCounterIdMap.find(backendIdPair); @@ -34,7 +34,7 @@ uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const armnn::Backe return it->second; } -const std::pair<uint16_t, armnn::BackendId>& CounterIdMap::GetBackendId(uint16_t globalCounterId) +const std::pair<uint16_t, armnn::BackendId>& CounterIdMap::GetBackendId(uint16_t globalCounterId) const { auto it = m_GlobalCounterIdMap.find(globalCounterId); if (it == m_GlobalCounterIdMap.end()) @@ -47,4 +47,4 @@ const std::pair<uint16_t, armnn::BackendId>& CounterIdMap::GetBackendId(uint16_t } } // namespace profiling -} // namespace armnn
\ No newline at end of file +} // namespace armnn |