diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-08 21:23:44 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-09 22:14:52 +0000 |
commit | f9db3efe5ce2b989b59c47056e1b84b32d2f1100 (patch) | |
tree | b1fd75d5f951f9036a8f0b37211fc30b4d651262 /src/profiling/ProfilingService.cpp | |
parent | 0e5588f3289845d1bd7597ade081764018eda2cc (diff) | |
download | armnn-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/ProfilingService.cpp')
-rw-r--r-- | src/profiling/ProfilingService.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp index 97db6e9a04..f187b398a1 100644 --- a/src/profiling/ProfilingService.cpp +++ b/src/profiling/ProfilingService.cpp @@ -129,7 +129,7 @@ void ProfilingService::Update() ARMNN_ASSERT(m_ProfilingConnectionFactory); m_ProfilingConnection = m_ProfilingConnectionFactory->GetProfilingConnection(m_Options); } - catch (const armnn::Exception& e) + catch (const arm::pipe::ProfilingException& e) { ARMNN_LOG(warning) << "An error has occurred when creating the profiling connection: " << e.what(); @@ -167,8 +167,8 @@ void ProfilingService::Update() break; default: - throw armnn::RuntimeException(fmt::format("Unknown profiling service state: {}", - static_cast<int>(currentState))); + throw arm::pipe::ProfilingException(fmt::format("Unknown profiling service state: {}", + static_cast<int>(currentState))); } } @@ -187,8 +187,8 @@ void ProfilingService::Disconnect() break; default: - throw armnn::RuntimeException(fmt::format("Unknown profiling service state: {}", - static_cast<int>(currentState))); + throw arm::pipe::ProfilingException(fmt::format("Unknown profiling service state: {}", + static_cast<int>(currentState))); } } @@ -381,7 +381,7 @@ inline void ProfilingService::CheckCounterUid(uint16_t counterUid) const { if (!IsCounterRegistered(counterUid)) { - throw InvalidArgumentException(fmt::format("Counter UID {} is not registered", counterUid)); + throw arm::pipe::InvalidArgumentException(fmt::format("Counter UID {} is not registered", counterUid)); } } |