From fd627ffaec8fd8801d980b4c91ee7c0607ab6aaf Mon Sep 17 00:00:00 2001 From: Jan Eilers Date: Thu, 25 Feb 2021 17:44:00 +0000 Subject: IVGCVSW-5687 Update Doxygen Docu * Update Doxygen Documentation for 21.02 release Signed-off-by: Jan Eilers Change-Id: I9ed2f9caab038836ea99d7b378d7899fe431a4e5 --- 21.02/_i_backend_profiling_8hpp_source.xhtml | 137 +++++++++++++++++++++++++++ 1 file changed, 137 insertions(+) create mode 100644 21.02/_i_backend_profiling_8hpp_source.xhtml (limited to '21.02/_i_backend_profiling_8hpp_source.xhtml') diff --git a/21.02/_i_backend_profiling_8hpp_source.xhtml b/21.02/_i_backend_profiling_8hpp_source.xhtml new file mode 100644 index 0000000000..7cf35ea092 --- /dev/null +++ b/21.02/_i_backend_profiling_8hpp_source.xhtml @@ -0,0 +1,137 @@ + + + + + + + + + + + + + +ArmNN: include/armnn/backends/profiling/IBackendProfiling.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
IBackendProfiling.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <armnn/IRuntime.hpp>
10 #include <memory>
11 #include <vector>
12 
13 namespace armnn
14 {
15 
16 namespace profiling
17 {
18 
20 {
21  CounterValue(uint16_t id, uint32_t value) :
22  counterId(id), counterValue(value) {}
23  uint16_t counterId;
24  uint32_t counterValue;
25 };
26 
27 struct Timestamp
28 {
29  uint64_t timestamp;
30  std::vector<CounterValue> counterValues;
31 };
32 
34 {
35  CounterStatus(uint16_t backendCounterId,
36  uint16_t globalCounterId,
37  bool enabled,
38  uint32_t samplingRateInMicroseconds)
39  : m_BackendCounterId(backendCounterId),
40  m_GlobalCounterId(globalCounterId),
41  m_Enabled(enabled),
42  m_SamplingRateInMicroseconds(samplingRateInMicroseconds) {}
45  bool m_Enabled;
47 };
48 
50 {
51 public:
52  virtual void RegisterCategory(const std::string& categoryName) = 0;
53 
54  virtual uint16_t RegisterDevice(const std::string& deviceName,
55  uint16_t cores = 0,
56  const Optional<std::string>& parentCategoryName = EmptyOptional()) = 0;
57 
58  virtual uint16_t RegisterCounterSet(const std::string& counterSetName,
59  uint16_t count = 0,
60  const Optional<std::string>& parentCategoryName = EmptyOptional()) = 0;
61 
62  virtual uint16_t RegisterCounter(const uint16_t uid,
63  const std::string& parentCategoryName,
64  uint16_t counterClass,
65  uint16_t interpolation,
66  double multiplier,
67  const std::string& name,
68  const std::string& description,
69  const Optional<std::string>& units = EmptyOptional(),
70  const Optional<uint16_t>& numberOfCores = EmptyOptional(),
71  const Optional<uint16_t>& deviceUid = EmptyOptional(),
72  const Optional<uint16_t>& counterSetUid = EmptyOptional()) = 0;
73 
75 };
76 
78 {
79 public:
81  {}
82 
83  virtual std::unique_ptr<IRegisterBackendCounters>
84  GetCounterRegistrationInterface(uint16_t currentMaxGlobalCounterID) = 0;
85 
86  virtual std::unique_ptr<ISendTimelinePacket> GetSendTimelinePacket() = 0;
87 
88  virtual IProfilingGuidGenerator& GetProfilingGuidGenerator() = 0;
89 
90  virtual void ReportCounters(const std::vector<Timestamp>& counterValues) = 0;
91 
92  virtual CounterStatus GetCounterStatus(uint16_t backendCounterId) = 0;
93 
94  virtual std::vector<CounterStatus> GetActiveCounters() = 0;
95 
96  virtual bool IsProfilingEnabled() const = 0;
97 
98 };
99 
100 } // namespace profiling
101 
102 } // namespace armnn
+ + + +
CounterValue(uint16_t id, uint32_t value)
+ + + + + + + +
Copyright (c) 2021 ARM Limited and Contributors.
+ +
CounterStatus(uint16_t backendCounterId, uint16_t globalCounterId, bool enabled, uint32_t samplingRateInMicroseconds)
+
std::vector< CounterValue > counterValues
+ + + +
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