aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ProfilingService.cpp
diff options
context:
space:
mode:
authorSadik Armagan <sadik.armagan@arm.com>2020-03-03 10:44:56 +0000
committerJim Flynn <jim.flynn@arm.com>2020-03-04 13:14:40 +0000
commita97a0be5f16cb876d7226b733ac6aaa3b79dabd3 (patch)
treeebbaf35fcddb6f0c3c15abf1ee8dd484ac2bc7ec /src/profiling/ProfilingService.cpp
parentc3bf6efb48a4540c8addcc02813c9381e4fceb1f (diff)
downloadarmnn-a97a0be5f16cb876d7226b733ac6aaa3b79dabd3.tar.gz
IVGCVSW-4163 Enhance the error handling in the ReadPacket function
* Introduced armnn::SocketConnectionException with fields error no and socket info. Signed-off-by: Sadik Armagan <sadik.armagan@arm.com> Change-Id: Ideb85b00771864e332226635aeff3096fbea8e5f
Diffstat (limited to 'src/profiling/ProfilingService.cpp')
-rw-r--r--src/profiling/ProfilingService.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/profiling/ProfilingService.cpp b/src/profiling/ProfilingService.cpp
index 0c33ca0e7d..f111de15db 100644
--- a/src/profiling/ProfilingService.cpp
+++ b/src/profiling/ProfilingService.cpp
@@ -7,6 +7,7 @@
#include <armnn/BackendId.hpp>
#include <armnn/Logging.hpp>
+#include <common/include/SocketConnectionException.hpp>
#include <boost/format.hpp>
@@ -128,6 +129,11 @@ void ProfilingService::Update()
ARMNN_LOG(warning) << "An error has occurred when creating the profiling connection: "
<< e.what();
}
+ catch (const armnnProfiling::SocketConnectionException& e)
+ {
+ ARMNN_LOG(warning) << "An error has occurred when creating the profiling connection ["
+ << e.what() << "] on socket [" << e.GetSocketFd() << "].";
+ }
// Move to the next state
m_StateMachine.TransitionToState(m_ProfilingConnection