From add078b7f9a658d52ee6e8fe6771ea0517c07674 Mon Sep 17 00:00:00 2001 From: mathad01 Date: Mon, 10 May 2021 16:51:20 +0100 Subject: IVGCVSW-5908 Update 21.05 Doxygen Documents Signed-off-by: mathad01 Change-Id: I95316d4fc5f9d10185492dc835bb2411c1daea7b --- ...riodic_counter_selection_response_handler.xhtml | 236 +++++++++++++++++++++ 1 file changed, 236 insertions(+) create mode 100644 21.05/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml (limited to '21.05/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml') diff --git a/21.05/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml b/21.05/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml new file mode 100644 index 0000000000..fa6e3dd548 --- /dev/null +++ b/21.05/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml @@ -0,0 +1,236 @@ + + + + + + + + + + + + + +ArmNN: PeriodicCounterSelectionResponseHandler Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.05 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
PeriodicCounterSelectionResponseHandler Class Reference
+
+
+ +

#include <PeriodicCounterSelectionResponseHandler.hpp>

+
+Inheritance diagram for PeriodicCounterSelectionResponseHandler:
+
+
+ + + +
+ + + + + + +

+Public Member Functions

 PeriodicCounterSelectionResponseHandler (uint32_t familyId, uint32_t packetId, uint32_t version, bool quietOperation=true)
 
void operator() (const arm::pipe::Packet &packet) override
 
+

Detailed Description

+
+

Definition at line 18 of file PeriodicCounterSelectionResponseHandler.hpp.

+

Constructor & Destructor Documentation

+ +

◆ PeriodicCounterSelectionResponseHandler()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PeriodicCounterSelectionResponseHandler (uint32_t familyId,
uint32_t packetId,
uint32_t version,
bool quietOperation = true 
)
+
+inline
+
+
Parameters
+ + + + +
packetIdThe id of packets this handler will process.
versionThe version of that id.
quietOperationOptional parameter to turn off printouts. This is useful for unittests.
+
+
+ +

Definition at line 28 of file PeriodicCounterSelectionResponseHandler.hpp.

+ +

References PeriodicCounterSelectionResponseHandler::operator()().

+
32  : CommandHandlerFunctor(familyId, packetId, version)
33  , m_QuietOperation(quietOperation)
34  {}
+
+
+

Member Function Documentation

+ +

◆ operator()()

+ +
+
+ + + + + +
+ + + + + + + + +
void operator() (const arm::pipe::Packet & packet)
+
+override
+
+ +

Definition at line 18 of file PeriodicCounterSelectionResponseHandler.cpp.

+ +

References armnn::profiling::ReadUint32().

+ +

Referenced by PeriodicCounterSelectionResponseHandler::PeriodicCounterSelectionResponseHandler().

+
19 {
20  if (!m_QuietOperation) // Are we supposed to print to stdout?
21  {
22  uint32_t period = arm::pipe::ReadUint32(reinterpret_cast<const unsigned char*>(packet.GetData()), 0);
23  uint32_t numCounters = 0;
24  // First check if there are any counters mentioned.
25  if(packet.GetLength() > 4)
26  {
27  // Length will be 4 bytes for the period and then a list of 16 bit UIDS.
28  numCounters = ((packet.GetLength() - 4) / 2);
29  }
30  std::cout << "PeriodicCounterSelectionResponse: Collection interval = " << std::dec << period << "uSec"
31  << " Num counters activated = " << numCounters << std::endl;
32  }
33 }
uint32_t ReadUint32(const IPacketBufferPtr &packetBuffer, unsigned int offset)
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1