diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/armnn/Runtime.cpp | 5 | ||||
-rw-r--r-- | src/profiling/CommandHandlerFunctor.hpp | 2 |
2 files changed, 7 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); diff --git a/src/profiling/CommandHandlerFunctor.hpp b/src/profiling/CommandHandlerFunctor.hpp index 2e1e05fd32..7aaab58d15 100644 --- a/src/profiling/CommandHandlerFunctor.hpp +++ b/src/profiling/CommandHandlerFunctor.hpp @@ -28,6 +28,8 @@ public: virtual void operator()(const Packet& packet) {} + virtual ~CommandHandlerFunctor() {} + private: uint32_t m_PacketId; uint32_t m_Version; |