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 --- ...ection_dump_to_file_decorator_8hpp_source.xhtml | 128 +++++++++++++++++++++ 1 file changed, 128 insertions(+) create mode 100644 20.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml (limited to '20.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml') diff --git a/20.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml b/20.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml new file mode 100644 index 0000000000..70bc6046d3 --- /dev/null +++ b/20.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/ProfilingConnectionDumpToFileDecorator.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ProfilingConnectionDumpToFileDecorator.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
6 #pragma once
7 
9 #include "ProfilingUtils.hpp"
10 
11 #include <Runtime.hpp>
12 #include <armnn/Optional.hpp>
13 
14 #include <fstream>
15 #include <memory>
16 #include <string>
17 #include <vector>
18 
19 namespace armnn
20 {
21 
22 namespace profiling
23 {
24 
26 {
27 public:
28 
29  ProfilingConnectionDumpToFileDecorator(std::unique_ptr<IProfilingConnection> connection,
30  const Runtime::CreationOptions::ExternalProfilingOptions& options,
31  bool ignoreFailures = false);
32 
34 
35  bool IsOpen() const override;
36 
37  void Close() override;
38 
39  bool WritePacket(const unsigned char* buffer, uint32_t length) override;
40 
41  Packet ReadPacket(uint32_t timeout) override;
42 
43 private:
44  bool OpenIncomingDumpFile();
45 
46  bool OpenOutgoingDumpFile();
47 
48  void DumpIncomingToFile(const Packet& packet);
49 
50  bool DumpOutgoingToFile(const unsigned char* buffer, uint32_t length);
51 
52  void Fail(const std::string& errorMessage);
53 
54  std::unique_ptr<IProfilingConnection> m_Connection;
55  Runtime::CreationOptions::ExternalProfilingOptions m_Options;
56  std::ofstream m_IncomingDumpFileStream;
57  std::ofstream m_OutgoingDumpFileStream;
58  bool m_IgnoreFileErrors;
59 };
60 
61 } // namespace profiling
62 
63 } // namespace armnn
bool WritePacket(const unsigned char *buffer, uint32_t length) override
+ + + +
Copyright (c) 2020 ARM Limited.
+
ProfilingConnectionDumpToFileDecorator(std::unique_ptr< IProfilingConnection > connection, const Runtime::CreationOptions::ExternalProfilingOptions &options, bool ignoreFailures=false)
+ + + + + + +
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
+ + +
+
+ + + + -- cgit v1.2.1