aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/SendTimelinePacket.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/SendTimelinePacket.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/SendTimelinePacket.cpp')
-rw-r--r--src/profiling/SendTimelinePacket.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/profiling/SendTimelinePacket.cpp b/src/profiling/SendTimelinePacket.cpp
index e44e5aa37c..62d1530490 100644
--- a/src/profiling/SendTimelinePacket.cpp
+++ b/src/profiling/SendTimelinePacket.cpp
@@ -66,11 +66,11 @@ void SendTimelinePacket::ReserveBuffer()
// Check if there is enough space in the buffer
if (m_WriteBuffer == nullptr)
{
- throw BufferExhaustion("No free buffers left", CHECK_LOCATION());
+ throw arm::pipe::BufferExhaustion("No free buffers left", LOCATION());
}
if (reserved < m_Offset)
{
- throw BufferExhaustion("Reserved space too small for use", CHECK_LOCATION());
+ throw arm::pipe::BufferExhaustion("Reserved space too small for use", LOCATION());
}
if (m_DirectoryPackage)
@@ -144,7 +144,7 @@ void SendTimelinePacket::SendTimelineMessageDirectoryPackage()
numberOfBytesWritten);
if (result != TimelinePacketStatus::Ok)
{
- throw armnn::RuntimeException("Error processing TimelineMessageDirectoryPackage", CHECK_LOCATION());
+ throw arm::pipe::ProfilingException("Error processing TimelineMessageDirectoryPackage", LOCATION());
}
// Commit the message
@@ -154,7 +154,7 @@ void SendTimelinePacket::SendTimelineMessageDirectoryPackage()
}
catch (...)
{
- throw armnn::RuntimeException("Error processing TimelineMessageDirectoryPackage", CHECK_LOCATION());
+ throw arm::pipe::ProfilingException("Error processing TimelineMessageDirectoryPackage", LOCATION());
}
}