From c4728ad356b73915588c971f6de38f4493078397 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Mon, 7 Oct 2019 15:15:12 +0100 Subject: IVGCVSW-3948 Add Profiling config to Runtime constructor Change-Id: Ib5cb85e620ed2cd76a85d423b2674b5d80981be9 Signed-off-by: Jim Flynn --- src/armnn/Runtime.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/armnn/Runtime.cpp') diff --git a/src/armnn/Runtime.cpp b/src/armnn/Runtime.cpp index e47835687d..dd46708508 100644 --- a/src/armnn/Runtime.cpp +++ b/src/armnn/Runtime.cpp @@ -10,6 +10,8 @@ #include #include +#include "../profiling/ProfilingService.hpp" + #include #include @@ -146,6 +148,9 @@ Runtime::Runtime(const CreationOptions& options) { BOOST_LOG_TRIVIAL(info) << "ArmNN v" << ARMNN_VERSION << "\n"; + // pass configuration info to the profiling service + armnn::profiling::ProfilingService::Instance().ResetExternalProfilingOptions(options.m_ProfilingOptions); + // Load any available/compatible dynamic backend before the runtime // goes through the backend registry LoadDynamicBackends(options.m_DynamicBackendsPath); -- cgit v1.2.1