19 const Runtime::CreationOptions::ExternalProfilingOptions&
options)
const 22 if (!(options.m_FileFormat ==
"binary"))
35 if ((!options.m_IncomingCaptureFile.empty() || !options.m_OutgoingCaptureFile.empty()) && !options.m_FileOnly)
38 return std::make_unique<ProfilingConnectionDumpToFileDecorator>(std::make_unique<SocketProfilingConnection>(),
41 else if ((!options.m_IncomingCaptureFile.empty() || !options.m_OutgoingCaptureFile.empty()) && options.m_FileOnly)
44 return std::make_unique<ProfilingConnectionDumpToFileDecorator>(
45 std::make_unique<FileOnlyProfilingConnection>(
options), options);
47 else if (options.m_FileOnly && !options.m_LocalPacketHandlers.empty())
50 return std::make_unique<FileOnlyProfilingConnection>(
options);
55 return std::make_unique<SocketProfilingConnection>();
Copyright (c) 2020 ARM Limited.
armnn::Runtime::CreationOptions::ExternalProfilingOptions options
IProfilingConnectionPtr GetProfilingConnection(const ExternalProfilingOptions &options) const override