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 --- ...ctarmnn_1_1gatordmock_1_1_category_record.xhtml | 227 +++++++++++++++++++++ 1 file changed, 227 insertions(+) create mode 100644 20.02/structarmnn_1_1gatordmock_1_1_category_record.xhtml (limited to '20.02/structarmnn_1_1gatordmock_1_1_category_record.xhtml') diff --git a/20.02/structarmnn_1_1gatordmock_1_1_category_record.xhtml b/20.02/structarmnn_1_1gatordmock_1_1_category_record.xhtml new file mode 100644 index 0000000000..49694ec41f --- /dev/null +++ b/20.02/structarmnn_1_1gatordmock_1_1_category_record.xhtml @@ -0,0 +1,227 @@ + + + + + + + + + + + + + +ArmNN: CategoryRecord Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
CategoryRecord Struct Reference
+
+
+ +

#include <CounterDirectory.hpp>

+ + + + +

+Public Member Functions

void print () const
 
+ + + + + + + +

+Public Attributes

uint16_t m_EventCount
 
std::string m_CategoryName
 
std::vector< EventRecordm_EventRecords
 
+

Detailed Description

+
+

Definition at line 107 of file CounterDirectory.hpp.

+

Member Function Documentation

+ +

◆ print()

+ +
+
+ + + + + +
+ + + + + + + +
void print () const
+
+inline
+
+ +

Definition at line 113 of file CounterDirectory.hpp.

+ +

References armnn::profiling::CentreAlignFormatting(), EventRecord::printContents(), and EventRecord::printHeader().

+ +

Referenced by CounterDirectory::print().

+
114  {
115  std::string body;
116  std::string header;
117 
118  header.append(gatordmock::CentreAlignFormatting("Name", 20));
119  header.append(" | ");
120  header.append(gatordmock::CentreAlignFormatting("Event Count", 14));
121  header.append("\n");
122 
124  body.append(" | ");
125  body.append(gatordmock::CentreAlignFormatting(std::to_string(m_EventCount), 14));
126 
127  std::cout << "\n" << "\n";
128  std::cout << gatordmock::CentreAlignFormatting("CATEGORY", static_cast<int>(header.size()));
129  std::cout << "\n";
130  std::cout << std::string(header.size(), '=') << "\n";
131 
132  std::cout<< header;
133 
134  std::cout << std::string(body.size(), '-') << "\n";
135 
136  std::cout<< body;
137 
138  if(m_EventRecords.size() > 0)
139  {
141 
142  std::for_each(m_EventRecords.begin(), m_EventRecords.end(), std::mem_fun_ref(&EventRecord::printContents));
143  }
144  }
static void printHeader(std::string categoryName)
+
std::vector< EventRecord > m_EventRecords
+ + + +
std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)
+
+
+
+

Member Data Documentation

+ +

◆ m_CategoryName

+ +
+
+ + + + +
std::string m_CategoryName
+
+ +

Definition at line 110 of file CounterDirectory.hpp.

+ +
+
+ +

◆ m_EventCount

+ +
+
+ + + + +
uint16_t m_EventCount
+
+ +

Definition at line 109 of file CounterDirectory.hpp.

+ +
+
+ +

◆ m_EventRecords

+ +
+
+ + + + +
std::vector<EventRecord> m_EventRecords
+
+ +

Definition at line 111 of file CounterDirectory.hpp.

+ +
+
+
The documentation for this struct was generated from the following file: +
+
+ + + + -- cgit v1.2.1