aboutsummaryrefslogtreecommitdiff
path: root/src/profiling/ICounterRegistry.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2020-02-02 12:52:59 +0000
committerDavid Monahan <david.monahan@arm.com>2020-02-03 14:51:47 +0000
commit9789702c0b276ca9518e590f30465da7e76a940f (patch)
tree08f3090bb8e22e84349253b8c924d626742f02f0 /src/profiling/ICounterRegistry.hpp
parent8e0c7a66efc8d61787c43cdaeab3754e2905f623 (diff)
downloadarmnn-9789702c0b276ca9518e590f30465da7e76a940f.tar.gz
IVGCVSW-4393 Register backend counters
Signed-off-by: David Monahan <david.monahan@arm.com> Change-Id: I419ecc2fce4b7e0fcaeb6d1f9cb687c0b660125d Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/ICounterRegistry.hpp')
-rw-r--r--src/profiling/ICounterRegistry.hpp52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/profiling/ICounterRegistry.hpp b/src/profiling/ICounterRegistry.hpp
new file mode 100644
index 0000000000..75bc8ef97f
--- /dev/null
+++ b/src/profiling/ICounterRegistry.hpp
@@ -0,0 +1,52 @@
+//
+// Copyright © 2020 Arm Ltd. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include <armnn/Optional.hpp>
+#include <armnn/BackendId.hpp>
+
+namespace armnn
+{
+
+namespace profiling
+{
+
+class ICounterRegistry
+{
+public:
+ virtual ~ICounterRegistry() {}
+
+ // Register profiling objects
+ virtual const Category* RegisterCategory (const std::string& categoryName,
+ const Optional<uint16_t>& deviceUid,
+ const Optional<uint16_t>& counterSetUid) = 0;
+
+ virtual const Device* RegisterDevice (const std::string& deviceName,
+ uint16_t cores,
+ const Optional<std::string>& parentCategoryName) = 0;
+
+ virtual const CounterSet* RegisterCounterSet(const std::string& counterSetName,
+ uint16_t count,
+ const Optional<std::string>& parentCategoryName) = 0;
+
+ virtual const Counter* RegisterCounter(const BackendId& backendId,
+ const uint16_t uid,
+ const std::string& parentCategoryName,
+ uint16_t counterClass,
+ uint16_t interpolation,
+ double multiplier,
+ const std::string& name,
+ const std::string& description,
+ const Optional<std::string>& units,
+ const Optional<uint16_t>& numberOfCores,
+ const Optional<uint16_t>& deviceUid,
+ const Optional<uint16_t>& counterSetUid) = 0;
+
+};
+
+} // namespace profiling
+
+} // namespace armnn