aboutsummaryrefslogtreecommitdiff
path: root/src/armnn/Runtime.cpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2019-10-07 15:15:12 +0100
committerMatteo Martincigh <matteo.martincigh@arm.com>2019-10-08 14:46:01 +0000
commitc4728ad356b73915588c971f6de38f4493078397 (patch)
tree4f28ee1a080fad15e09e1e19748b34601fb86b7f /src/armnn/Runtime.cpp
parent5d737fb3b06c17ff6b65fb307343ca1c0c680401 (diff)
downloadarmnn-c4728ad356b73915588c971f6de38f4493078397.tar.gz
IVGCVSW-3948 Add Profiling config to Runtime constructor
Change-Id: Ib5cb85e620ed2cd76a85d423b2674b5d80981be9 Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/armnn/Runtime.cpp')
-rw-r--r--src/armnn/Runtime.cpp5
1 files changed, 5 insertions, 0 deletions
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 <backendsCommon/IBackendContext.hpp>
#include <backendsCommon/DynamicBackendUtils.hpp>
+#include "../profiling/ProfilingService.hpp"
+
#include <iostream>
#include <boost/log/trivial.hpp>
@@ -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);