diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-20 21:52:17 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 20:32:03 +0000 |
commit | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (patch) | |
tree | e468fa1362640484b508812596fb5c1b62186882 /profiling/client/include/backends/IBackendProfilingContext.hpp | |
parent | a3bc0b4976395226c0fa0898b26098c4534edbdb (diff) | |
download | armnn-277618302d0f131eac0b6ac2015dd3eb09aa6ff9.tar.gz |
IVGCVSW-6706 Move headers to profiling/client/include
!android-nn-driver:7337
Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'profiling/client/include/backends/IBackendProfilingContext.hpp')
-rw-r--r-- | profiling/client/include/backends/IBackendProfilingContext.hpp | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/profiling/client/include/backends/IBackendProfilingContext.hpp b/profiling/client/include/backends/IBackendProfilingContext.hpp new file mode 100644 index 0000000000..a1ed05e43d --- /dev/null +++ b/profiling/client/include/backends/IBackendProfilingContext.hpp @@ -0,0 +1,30 @@ +// +// Copyright © 2020 Arm Ltd. All rights reserved. +// SPDX-License-Identifier: MIT +// +#pragma once + +#include "IBackendProfiling.hpp" +#include <vector> + +namespace arm +{ +namespace pipe +{ + +class IBackendProfilingContext +{ +public: + virtual ~IBackendProfilingContext() + {} + virtual uint16_t RegisterCounters(uint16_t currentMaxGlobalCounterID) = 0; + virtual arm::pipe::Optional<std::string> ActivateCounters( + uint32_t capturePeriod, const std::vector<uint16_t>& counterIds) = 0; + virtual std::vector<Timestamp> ReportCounterValues() = 0; + virtual bool EnableProfiling(bool flag) = 0; + virtual bool EnableTimelineReporting(bool flag) = 0; +}; + +using IBackendProfilingContextUniquePtr = std::unique_ptr<IBackendProfilingContext>; +} // namespace pipe +} // namespace arm |