aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendTimelinePacket.hpp
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/SendTimelinePacket.hpp
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/SendTimelinePacket.hpp')
-rw-r--r--src/profiling/SendTimelinePacket.hpp16
1 files changed, 6 insertions, 10 deletions
diff --git a/src/profiling/SendTimelinePacket.hpp b/src/profiling/SendTimelinePacket.hpp
index f915dafea7..fe8c5d45e2 100644
--- a/src/profiling/SendTimelinePacket.hpp
+++ b/src/profiling/SendTimelinePacket.hpp
@@ -97,8 +97,8 @@ void SendTimelinePacket::ForwardWriteBinaryFunction(Func& func, Params&& ... par
continue;
case TimelinePacketStatus::Error:
- throw armnn::RuntimeException("Error processing while sending TimelineBinaryPacket", CHECK_LOCATION
- ());
+ throw arm::pipe::ProfilingException("Error processing while sending TimelineBinaryPacket",
+ LOCATION());
default:
m_Offset += numberOfBytesWritten;
@@ -107,23 +107,19 @@ void SendTimelinePacket::ForwardWriteBinaryFunction(Func& func, Params&& ... par
}
}
}
- catch (const armnn::RuntimeException& ex)
- {
- // don't swallow in the catch all block
- throw ex;
- }
- catch (const BufferExhaustion& ex)
+ catch (const arm::pipe::BufferExhaustion& ex)
{
// ditto
throw ex;
}
- catch (const armnn::Exception& ex)
+ catch (const arm::pipe::ProfilingException& ex)
{
+ // don't swallow in the catch all block
throw ex;
}
catch ( ... )
{
- throw armnn::RuntimeException("Unknown Exception thrown while sending TimelineBinaryPacket", CHECK_LOCATION());
+ throw arm::pipe::ProfilingException("Unknown Exception thrown while sending TimelineBinaryPacket", LOCATION());
}
}