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 --- ...quest_counters_packet_handler_8hpp_source.xhtml | 126 +++++++++++++++++++++ 1 file changed, 126 insertions(+) create mode 100644 21.02/_request_counters_packet_handler_8hpp_source.xhtml (limited to '21.02/_request_counters_packet_handler_8hpp_source.xhtml') diff --git a/21.02/_request_counters_packet_handler_8hpp_source.xhtml b/21.02/_request_counters_packet_handler_8hpp_source.xhtml new file mode 100644 index 0000000000..f58f6f9151 --- /dev/null +++ b/21.02/_request_counters_packet_handler_8hpp_source.xhtml @@ -0,0 +1,126 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/test/RequestCountersPacketHandler.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
RequestCountersPacketHandler.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
8 #include <armnn/Types.hpp>
10 #include "ProfilingUtils.hpp"
11 
12 #include <common/include/Packet.hpp>
13 
14 namespace armnn
15 {
16 
17 namespace profiling
18 {
19 
21 {
22 public:
23  explicit RequestCountersPacketHandler(uint32_t capturePeriod = LOWEST_CAPTURE_PERIOD) :
24  m_CapturePeriod(capturePeriod),
25  m_Connection(nullptr),
26  m_CounterDirectoryMessageHeader(ConstructHeader(0, 2)) {}
27 
28  std::vector<uint32_t> GetHeadersAccepted() override; // ILocalPacketHandler
29 
30  void HandlePacket(const arm::pipe::Packet& packet) override; // ILocalPacketHandler
31 
32  void SetConnection(IInternalProfilingConnection* profilingConnection) override // ILocalPacketHandler
33  {
34  m_Connection = profilingConnection;
35  }
36 
37 private:
38  uint32_t m_CapturePeriod;
39  IInternalProfilingConnection* m_Connection;
40  uint32_t m_CounterDirectoryMessageHeader;
41  std::vector<uint16_t> m_IdList;
42 
43  void SendCounterSelectionPacket();
44 };
45 
46 } // namespace profiling
47 
48 } // namespace armnn
void SetConnection(IInternalProfilingConnection *profilingConnection) override
Set a profiling connection on the handler.
+ +
Copyright (c) 2021 ARM Limited and Contributors.
+
RequestCountersPacketHandler(uint32_t capturePeriod=LOWEST_CAPTURE_PERIOD)
+ + +
uint32_t ConstructHeader(uint32_t packetFamily, uint32_t packetId)
+
constexpr unsigned int LOWEST_CAPTURE_PERIOD
The lowest performance data capture interval we support is 10 miliseconds.
Definition: Types.hpp:21
+ + +
void HandlePacket(const arm::pipe::Packet &packet) override
process the packet
+ + +
+
+ + + + -- cgit v1.2.1