From f4019872c1134c6fcc1d6993e5746f55c1e79208 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Tue, 8 Mar 2022 20:01:38 +0000 Subject: IVGCVSW-6819 Fix the directory structure and broken link to latest docu Signed-off-by: Nikhil Raj Change-Id: I05b559d15faf92c76ff536719693b361316be4f3 --- ...ection_dump_to_file_decorator_8hpp_source.xhtml | 127 +++++++++++++++++++++ 1 file changed, 127 insertions(+) create mode 100644 22.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml (limited to '22.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml') diff --git a/22.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml b/22.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml new file mode 100644 index 0000000000..d10fc5185a --- /dev/null +++ b/22.02/_profiling_connection_dump_to_file_decorator_8hpp_source.xhtml @@ -0,0 +1,127 @@ + + + + + + + + + + + + + +ArmNN: src/profiling/ProfilingConnectionDumpToFileDecorator.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  22.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ProfilingConnectionDumpToFileDecorator.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2019 Arm Ltd and Contributors. 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,
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  arm::pipe::Packet ReadPacket(uint32_t timeout) override;
42 
43 private:
44  bool OpenIncomingDumpFile();
45 
46  bool OpenOutgoingDumpFile();
47 
48  void DumpIncomingToFile(const arm::pipe::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;
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) 2021 ARM Limited and Contributors.
+ + + +
ProfilingConnectionDumpToFileDecorator(std::unique_ptr< IProfilingConnection > connection, const IRuntime::CreationOptions::ExternalProfilingOptions &options, bool ignoreFailures=false)
+ + + + + + +
+
+ + + + -- cgit v1.2.1