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 --- ...ructarmnn_1_1gatordmock_1_1_device_record.xhtml | 263 +++++++++++++++++++++ 1 file changed, 263 insertions(+) create mode 100644 20.02/structarmnn_1_1gatordmock_1_1_device_record.xhtml (limited to '20.02/structarmnn_1_1gatordmock_1_1_device_record.xhtml') diff --git a/20.02/structarmnn_1_1gatordmock_1_1_device_record.xhtml b/20.02/structarmnn_1_1gatordmock_1_1_device_record.xhtml new file mode 100644 index 0000000000..4521f24209 --- /dev/null +++ b/20.02/structarmnn_1_1gatordmock_1_1_device_record.xhtml @@ -0,0 +1,263 @@ + + + + + + + + + + + + + +ArmNN: DeviceRecord Struct Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

#include <CounterDirectory.hpp>

+ + + + +

+Public Member Functions

void printContents () const
 
+ + + +

+Static Public Member Functions

static void printHeader ()
 
+ + + + + + + +

+Public Attributes

uint16_t m_DeviceUid
 
uint16_t m_DeviceCores
 
std::string m_DeviceName
 
+

Detailed Description

+
+

Definition at line 189 of file CounterDirectory.hpp.

+

Member Function Documentation

+ +

◆ printContents()

+ +
+
+ + + + + +
+ + + + + + + +
void printContents () const
+
+inline
+
+ +

Definition at line 213 of file CounterDirectory.hpp.

+ +

References armnn::profiling::CentreAlignFormatting().

+ +

Referenced by CounterDirectory::print().

+
214  {
215  std::string body;
216 
218  body.append(" | ");
219  body.append(gatordmock::CentreAlignFormatting(std::to_string(m_DeviceUid), 13));
220  body.append(" | ");
221  body.append(gatordmock::CentreAlignFormatting(std::to_string(m_DeviceCores), 10));
222  body.append("\n");
223 
224  std::cout << std::string(body.size(), '-') << "\n";
225  std::cout<< body;
226  }
+ + +
std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)
+
+
+
+ +

◆ printHeader()

+ +
+
+ + + + + +
+ + + + + + + +
static void printHeader ()
+
+inlinestatic
+
+ +

Definition at line 195 of file CounterDirectory.hpp.

+ +

References armnn::profiling::CentreAlignFormatting().

+ +

Referenced by CounterDirectory::print().

+
196  {
197  std::string header;
198 
199  header.append(gatordmock::CentreAlignFormatting("Device name", 20));
200  header.append(" | ");
201  header.append(gatordmock::CentreAlignFormatting("UID",13));
202  header.append(" | ");
203  header.append(gatordmock::CentreAlignFormatting("Cores",10));
204  header.append("\n");
205 
206  std::cout << "\n" << "\n";
207  std::cout << gatordmock::CentreAlignFormatting("DEVICES", static_cast<int>(header.size()));
208  std::cout << "\n";
209  std::cout << std::string(header.size(), '=') << "\n";
210  std::cout<< header;
211  }
std::string CentreAlignFormatting(const std::string &stringToPass, const int spacingWidth)
+
+
+
+

Member Data Documentation

+ +

◆ m_DeviceCores

+ +
+
+ + + + +
uint16_t m_DeviceCores
+
+ +

Definition at line 192 of file CounterDirectory.hpp.

+ +
+
+ +

◆ m_DeviceName

+ +
+
+ + + + +
std::string m_DeviceName
+
+ +

Definition at line 193 of file CounterDirectory.hpp.

+ +
+
+ +

◆ m_DeviceUid

+ +
+
+ + + + +
uint16_t m_DeviceUid
+
+ +

Definition at line 191 of file CounterDirectory.hpp.

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