diff options
author | Keith Davis <keith.davis@arm.com> | 2019-08-26 18:28:17 +0100 |
---|---|---|
committer | Jim Flynn Arm <jim.flynn@arm.com> | 2019-09-05 16:18:42 +0000 |
commit | 02356de9da5d5480b4b9b413d1b6b33daf7ab717 (patch) | |
tree | 5ea3b7c7170f34ef5166c50291e213aec6204440 /src/profiling/ProfilingService.hpp | |
parent | 0696569fbfb76b485624de24462aaf10d84f415d (diff) | |
download | armnn-02356de9da5d5480b4b9b413d1b6b33daf7ab717.tar.gz |
IVGCVSW-3674 Create basic ProfileService class
Signed-off-by: Keith Davis <keith.davis@arm.com>
Change-Id: I5bed5196c256883fb704fe14b60bb8f7a77cc9df
Diffstat (limited to 'src/profiling/ProfilingService.hpp')
-rw-r--r-- | src/profiling/ProfilingService.hpp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/profiling/ProfilingService.hpp b/src/profiling/ProfilingService.hpp new file mode 100644 index 0000000000..33f1135b87 --- /dev/null +++ b/src/profiling/ProfilingService.hpp @@ -0,0 +1,39 @@ +// +// Copyright © 2017 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// + +#pragma once + +#include "ProfilingStateMachine.hpp" +#include "ProfilingConnectionFactory.hpp" + +namespace armnn +{ + +namespace profiling +{ + +class ProfilingService +{ +public: + ProfilingService(const Runtime::CreationOptions::ExternalProfilingOptions& options); + ~ProfilingService() = default; + + void Run(); + + ProfilingState GetCurrentState() const; + + // Options are public to allow profiling to be turned on at runtime + Runtime::CreationOptions::ExternalProfilingOptions m_Options; + +private: + void Initialise(); + + ProfilingStateMachine m_State; + ProfilingConnectionFactory m_Factory; +}; + +} // namespace profiling + +} // namespace armnn
\ No newline at end of file |