ArmNN
 24.02
ProfilingOptionsConverter.cpp
Go to the documentation of this file.
1 //
2 // Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 
7 
8 #include <algorithm>
9 #include <iterator>
10 
11 namespace arm
12 {
13 
14 namespace pipe
15 {
16 
19 {
20  ProfilingOptions convertedOptions;
21  convertedOptions.m_EnableProfiling = options.m_EnableProfiling;
22  convertedOptions.m_TimelineEnabled = options.m_TimelineEnabled;
23  convertedOptions.m_OutgoingCaptureFile = options.m_OutgoingCaptureFile;
24  convertedOptions.m_IncomingCaptureFile = options.m_IncomingCaptureFile;
25  convertedOptions.m_FileOnly = options.m_FileOnly;
26  convertedOptions.m_CapturePeriod = options.m_CapturePeriod;
27  convertedOptions.m_FileFormat = options.m_FileFormat;
28  std::copy(options.m_LocalPacketHandlers.begin(), options.m_LocalPacketHandlers.end(),
29  std::back_inserter(convertedOptions.m_LocalPacketHandlers));
30  return convertedOptions;
31 }
32 
33 } // namespace arm
34 
35 } // namespace pipe
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_LocalPacketHandlers
std::vector< arm::pipe::ILocalPacketHandlerSharedPtr > m_LocalPacketHandlers
Definition: IRuntime.hpp:152
arm
Definition: BackendRegistry.hpp:15
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_FileOnly
bool m_FileOnly
Enable profiling output to file only.
Definition: IRuntime.hpp:147
arm::pipe::ConvertExternalProfilingOptions
ProfilingOptions ConvertExternalProfilingOptions(const armnn::IRuntime::CreationOptions::ExternalProfilingOptions &options)
Definition: ProfilingOptionsConverter.cpp:17
armnn::IRuntime::CreationOptions::ExternalProfilingOptions
Definition: IRuntime.hpp:125
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_IncomingCaptureFile
std::string m_IncomingCaptureFile
Path to a file in which incoming timeline profiling messages will be stored.
Definition: IRuntime.hpp:145
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_TimelineEnabled
bool m_TimelineEnabled
Indicates whether external timeline profiling is enabled or not.
Definition: IRuntime.hpp:141
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_CapturePeriod
uint32_t m_CapturePeriod
The duration at which captured profiling messages will be flushed.
Definition: IRuntime.hpp:149
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_FileFormat
std::string m_FileFormat
The format of the file used for outputting profiling data.
Definition: IRuntime.hpp:151
ProfilingOptionsConverter.hpp
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_OutgoingCaptureFile
std::string m_OutgoingCaptureFile
Path to a file in which outgoing timeline profiling messages will be stored.
Definition: IRuntime.hpp:143
armnn::IRuntime::CreationOptions::ExternalProfilingOptions::m_EnableProfiling
bool m_EnableProfiling
Indicates whether external profiling is enabled or not.
Definition: IRuntime.hpp:139