30 const Runtime::CreationOptions::ExternalProfilingOptions&
options,
31 bool ignoreFailures =
false);
35 bool IsOpen()
const override;
37 void Close()
override;
39 bool WritePacket(
const unsigned char* buffer, uint32_t length)
override;
44 bool OpenIncomingDumpFile();
46 bool OpenOutgoingDumpFile();
48 void DumpIncomingToFile(
const Packet& packet);
50 bool DumpOutgoingToFile(
const unsigned char* buffer, uint32_t length);
52 void Fail(
const std::string& errorMessage);
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;
bool WritePacket(const unsigned char *buffer, uint32_t length) override
Packet ReadPacket(uint32_t timeout) override
~ProfilingConnectionDumpToFileDecorator()
bool IsOpen() const override
ProfilingConnectionDumpToFileDecorator(std::unique_ptr< IProfilingConnection > connection, const Runtime::CreationOptions::ExternalProfilingOptions &options, bool ignoreFailures=false)
armnn::Runtime::CreationOptions::ExternalProfilingOptions options