From f86be93b7492b381370cae7bf71eca8572a0cbae Mon Sep 17 00:00:00 2001 From: Matthew Sloyan Date: Tue, 24 Aug 2021 16:27:15 +0100 Subject: IVGCVSW-5924 Update 21.08 Doxygen Documents * Also updated latest symlink. Signed-off-by: Matthew Sloyan Change-Id: If9b4e0e52464abdf797b9eb858ae19bcc64c2aea --- ..._periodic_counter_capture_command_handler.xhtml | 283 +++++++++++++++++++++ 1 file changed, 283 insertions(+) create mode 100644 21.08/classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.xhtml (limited to '21.08/classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.xhtml') diff --git a/21.08/classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.xhtml b/21.08/classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.xhtml new file mode 100644 index 0000000000..8c15dee41d --- /dev/null +++ b/21.08/classarmnn_1_1gatordmock_1_1_periodic_counter_capture_command_handler.xhtml @@ -0,0 +1,283 @@ + + + + + + + + + + + + + +ArmNN: PeriodicCounterCaptureCommandHandler Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  21.08 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
PeriodicCounterCaptureCommandHandler Class Reference
+
+
+ +

#include <PeriodicCounterCaptureCommandHandler.hpp>

+
+Inheritance diagram for PeriodicCounterCaptureCommandHandler:
+
+
+ + + +
+ + + + + + +

+Public Member Functions

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

+Public Attributes

CounterCaptureValues m_CounterCaptureValues
 
uint64_t m_CurrentPeriodValue = 0
 
+

Detailed Description

+
+

Definition at line 26 of file PeriodicCounterCaptureCommandHandler.hpp.

+

Constructor & Destructor Documentation

+ +

◆ PeriodicCounterCaptureCommandHandler()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
PeriodicCounterCaptureCommandHandler (uint32_t familyId,
uint32_t packetId,
uint32_t version,
bool quietOperation = false 
)
+
+inline
+
+
Parameters
+ + + + + +
familyIdThe family of the packets this handler will service
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 36 of file PeriodicCounterCaptureCommandHandler.hpp.

+
40  : CommandHandlerFunctor(familyId, packetId, version)
41  , m_QuietOperation(quietOperation)
42  {}
+
+
+

Member Function Documentation

+ +

◆ operator()()

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

Definition at line 75 of file PeriodicCounterCaptureCommandHandler.cpp.

+ +

References armnn::profiling::CentreAlignFormatting(), PeriodicCounterCaptureCommandHandler::m_CounterCaptureValues, PeriodicCounterCaptureCommandHandler::m_CurrentPeriodValue, CounterCaptureValues::m_Timestamp, CounterCaptureValues::m_Uids, and CounterCaptureValues::m_Values.

+
76 {
77  ParseData(packet);
78  if (!m_QuietOperation) // Are we supposed to print to stdout?
79  {
80  std::string header, body, uidString, valueString;
81 
82  for (uint16_t uid : m_CounterCaptureValues.m_Uids)
83  {
84  uidString.append(std::to_string(uid));
85  uidString.append(", ");
86  }
87 
88  for (uint32_t val : m_CounterCaptureValues.m_Values)
89  {
90  valueString.append(std::to_string(val));
91  valueString.append(", ");
92  }
93 
95  body.append(" | ");
96  body.append(arm::pipe::CentreAlignFormatting(std::to_string(m_CurrentPeriodValue), 13));
97  body.append(" | ");
98  body.append(arm::pipe::CentreAlignFormatting(uidString, 10));
99  body.append(" | ");
100  body.append(arm::pipe::CentreAlignFormatting(valueString, 10));
101  body.append("\n");
102 
103  if (!m_HeaderPrinted)
104  {
105  header.append(arm::pipe::CentreAlignFormatting(" Timestamp", 11));
106  header.append(" | ");
107  header.append(arm::pipe::CentreAlignFormatting("Period (us)", 13));
108  header.append(" | ");
109  header.append(arm::pipe::CentreAlignFormatting("UID's", static_cast<int>(uidString.size())));
110  header.append(" | ");
111  header.append(arm::pipe::CentreAlignFormatting("Values", 10));
112  header.append("\n");
113 
114  std::cout << header;
115  m_HeaderPrinted = true;
116  }
117 
118  std::cout << std::string(body.size(), '-') << "\n";
119 
120  std::cout << body;
121  }
122 }
+ + + +
std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)
+ +
+
+
+

Member Data Documentation

+ +

◆ m_CounterCaptureValues

+ +
+
+ + + + +
CounterCaptureValues m_CounterCaptureValues
+
+
+ +

◆ m_CurrentPeriodValue

+ +
+
+ + + + +
uint64_t m_CurrentPeriodValue = 0
+
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit v1.2.1