aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/CounterIdMap.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-08 21:23:44 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-09 22:14:52 +0000
commitf9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch)
treeb1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/CounterIdMap.cpp
parent0e5588f3289845d1bd7597ade081764018eda2cc (diff)
downloadarmnn-f9db3efe5ce2b989b59c47056e1b84b32d2f1100.tar.gz
IVGCVSW-6821 Remove dependency on armnn::Exception classes from the Profiling code
Change-Id: Id46a9a0576091df21b2af5b472f1ca5c6335e8a3 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/CounterIdMap.cpp')
-rw-r--r--src/profiling/CounterIdMap.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/profiling/CounterIdMap.cpp b/src/profiling/CounterIdMap.cpp
index bff8e0660e..80b63a36eb 100644
--- a/src/profiling/CounterIdMap.cpp
+++ b/src/profiling/CounterIdMap.cpp
@@ -3,7 +3,9 @@
// SPDX-License-Identifier: MIT
//
#include "CounterIdMap.hpp"
-#include <armnn/Exceptions.hpp>
+
+#include <common/include/ProfilingException.hpp>
+
#include <map>
namespace arm
@@ -34,7 +36,7 @@ uint16_t CounterIdMap::GetGlobalId(uint16_t backendCounterId, const std::string&
{
std::stringstream ss;
ss << "No Backend Counter [" << backendIdPair.second << ":" << backendIdPair.first << "] registered";
- throw armnn::Exception(ss.str());
+ throw arm::pipe::ProfilingException(ss.str());
}
return it->second;
}
@@ -46,7 +48,7 @@ const std::pair<uint16_t, std::string>& CounterIdMap::GetBackendId(uint16_t glob
{
std::stringstream ss;
ss << "No Global Counter ID [" << globalCounterId << "] registered";
- throw armnn::Exception(ss.str());
+ throw arm::pipe::ProfilingException(ss.str());
}
return it->second;
}