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 --- ...riodic_counter_selection_response_handler.xhtml | 253 +++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 20.02/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml (limited to '20.02/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml') diff --git a/20.02/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml b/20.02/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml new file mode 100644 index 0000000000..6974ed7eda --- /dev/null +++ b/20.02/classarmnn_1_1gatordmock_1_1_periodic_counter_selection_response_handler.xhtml @@ -0,0 +1,253 @@ + + + + + + + + + + + + + +ArmNN: PeriodicCounterSelectionResponseHandler Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
PeriodicCounterSelectionResponseHandler Class Reference
+
+
+ +

#include <PeriodicCounterSelectionResponseHandler.hpp>

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

+Public Member Functions

 PeriodicCounterSelectionResponseHandler (uint32_t familyId, uint32_t packetId, uint32_t version, bool quietOperation=true)
 
void operator() (const armnn::profiling::Packet &packet) override
 
- Public Member Functions inherited from CommandHandlerFunctor
 CommandHandlerFunctor (uint32_t familyId, uint32_t packetId, uint32_t version)
 
uint32_t GetFamilyId () const
 
uint32_t GetPacketId () const
 
uint32_t GetVersion () const
 
virtual ~CommandHandlerFunctor ()
 
+

Detailed Description

+
+

Definition at line 19 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 29 of file PeriodicCounterSelectionResponseHandler.hpp.

+ +

References PeriodicCounterSelectionResponseHandler::operator()().

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

Member Function Documentation

+ +

◆ operator()()

+ +
+
+ + + + + +
+ + + + + + + + +
void operator() (const armnn::profiling::Packetpacket)
+
+overridevirtual
+
+ +

Implements CommandHandlerFunctor.

+ +

Definition at line 18 of file PeriodicCounterSelectionResponseHandler.cpp.

+ +

References Packet::GetData(), Packet::GetLength(), and armnn::profiling::ReadUint32().

+ +

Referenced by PeriodicCounterSelectionResponseHandler::PeriodicCounterSelectionResponseHandler().

+
19 {
20  if (!m_QuietOperation) // Are we supposed to print to stdout?
21  {
22  uint32_t period = profiling::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)
+
uint32_t GetLength() const
Definition: Packet.hpp:74
+
const unsigned char * GetData() const
Definition: Packet.hpp:75
+
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1