From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_register_backend_counters_8hpp_source.xhtml | 131 +++++++++++++++++++++ 1 file changed, 131 insertions(+) create mode 100644 20.02/_register_backend_counters_8hpp_source.xhtml (limited to '20.02/_register_backend_counters_8hpp_source.xhtml') diff --git a/20.02/_register_backend_counters_8hpp_source.xhtml b/20.02/_register_backend_counters_8hpp_source.xhtml new file mode 100644 index 0000000000..a8e6f50676 --- /dev/null +++ b/20.02/_register_backend_counters_8hpp_source.xhtml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/RegisterBackendCounters.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RegisterBackendCounters.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 #include "CounterIdMap.hpp"
10 #include "CounterDirectory.hpp"
11 #include "ProfilingService.hpp"
12 
13 namespace armnn
14 {
15 
16 namespace profiling
17 {
18 
20 {
21 public:
22 
23  RegisterBackendCounters(uint16_t currentMaxGlobalCounterID, const BackendId& backendId)
24  : m_CurrentMaxGlobalCounterID(currentMaxGlobalCounterID),
25  m_CounterDirectory(ProfilingService::Instance().GetCounterRegistry()),
26  m_BackendId(backendId) {}
27 
28  ~RegisterBackendCounters() = default;
29 
30  void RegisterCategory(const std::string& categoryName) override;
31 
32  uint16_t RegisterDevice(const std::string& deviceName,
33  uint16_t cores = 0,
34  const Optional<std::string>& parentCategoryName = EmptyOptional()) override;
35 
36  uint16_t RegisterCounterSet(const std::string& counterSetName,
37  uint16_t count = 0,
38  const Optional<std::string>& parentCategoryName = EmptyOptional()) override;
39 
40  uint16_t RegisterCounter(const uint16_t uid,
41  const std::string& parentCategoryName,
42  uint16_t counterClass,
43  uint16_t interpolation,
44  double multiplier,
45  const std::string& name,
46  const std::string& description,
47  const Optional<std::string>& units = EmptyOptional(),
48  const Optional<uint16_t>& numberOfCores = EmptyOptional(),
49  const Optional<uint16_t>& deviceUid = EmptyOptional(),
50  const Optional<uint16_t>& counterSetUid = EmptyOptional()) override;
51 
52 private:
53  uint16_t m_CurrentMaxGlobalCounterID;
54  ICounterRegistry& m_CounterDirectory;
55  const BackendId& m_BackendId;
56 };
57 
58 } // namespace profiling
59 
60 } // namespace armnn
+ +
uint16_t RegisterDevice(const std::string &deviceName, uint16_t cores=0, const Optional< std::string > &parentCategoryName=EmptyOptional()) override
+
Copyright (c) 2020 ARM Limited.
+ + +
uint16_t RegisterCounterSet(const std::string &counterSetName, uint16_t count=0, const Optional< std::string > &parentCategoryName=EmptyOptional()) override
+ +
RegisterBackendCounters(uint16_t currentMaxGlobalCounterID, const BackendId &backendId)
+
uint16_t RegisterCounter(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=EmptyOptional(), const Optional< uint16_t > &numberOfCores=EmptyOptional(), const Optional< uint16_t > &deviceUid=EmptyOptional(), const Optional< uint16_t > &counterSetUid=EmptyOptional()) override
+ + +
void RegisterCategory(const std::string &categoryName) override
+
EmptyOptional is used to initialize the Optional class in case we want to have default value for an O...
Definition: Optional.hpp:32
+ + + + +
+
+ + + + -- cgit v1.2.1