diff options
author | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:01:26 +0000 |
---|---|---|
committer | Jim Flynn <jim.flynn@arm.com> | 2022-03-23 23:43:35 +0000 |
commit | 3e9bc19ad523361e6b18057849e30c0c48183915 (patch) | |
tree | b7b012a9734ce39d054fc5d92302780fd838e5c8 /src/profiling/ProfilingConnectionDumpToFileDecorator.hpp | |
parent | 277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (diff) | |
download | armnn-3e9bc19ad523361e6b18057849e30c0c48183915.tar.gz |
IVGCVSW-6706 Create the libpipeClient library
Change-Id: I2368aade38ad3808fab55d8a86cd659d4e95d91e
Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'src/profiling/ProfilingConnectionDumpToFileDecorator.hpp')
-rw-r--r-- | src/profiling/ProfilingConnectionDumpToFileDecorator.hpp | 62 |
1 files changed, 0 insertions, 62 deletions
diff --git a/src/profiling/ProfilingConnectionDumpToFileDecorator.hpp b/src/profiling/ProfilingConnectionDumpToFileDecorator.hpp deleted file mode 100644 index 8f4812e9dd..0000000000 --- a/src/profiling/ProfilingConnectionDumpToFileDecorator.hpp +++ /dev/null @@ -1,62 +0,0 @@ -// -// Copyright © 2019 Arm Ltd and Contributors. All rights reserved. -// SPDX-License-Identifier: MIT -// - -#pragma once - -#include "IProfilingConnection.hpp" -#include "ProfilingUtils.hpp" - -#include <client/include/ProfilingOptions.hpp> - -#include <fstream> -#include <memory> -#include <string> -#include <vector> - -namespace arm -{ - -namespace pipe -{ - -class ProfilingConnectionDumpToFileDecorator : public IProfilingConnection -{ -public: - - ProfilingConnectionDumpToFileDecorator(std::unique_ptr<IProfilingConnection> connection, - const ProfilingOptions& options, - bool ignoreFailures = false); - - ~ProfilingConnectionDumpToFileDecorator(); - - bool IsOpen() const override; - - void Close() override; - - bool WritePacket(const unsigned char* buffer, uint32_t length) override; - - arm::pipe::Packet ReadPacket(uint32_t timeout) override; - -private: - bool OpenIncomingDumpFile(); - - bool OpenOutgoingDumpFile(); - - void DumpIncomingToFile(const arm::pipe::Packet& packet); - - bool DumpOutgoingToFile(const unsigned char* buffer, uint32_t length); - - void Fail(const std::string& errorMessage); - - std::unique_ptr<IProfilingConnection> m_Connection; - ProfilingOptions m_Options; - std::ofstream m_IncomingDumpFileStream; - std::ofstream m_OutgoingDumpFileStream; - bool m_IgnoreFileErrors; -}; - -} // namespace pipe - -} // namespace arm |