blob: 50cd50e5c3e12013408cc3d26c5e261f726bf1e8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
//
// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
// SPDX-License-Identifier: MIT
//
#pragma once
#include <armnn/profiling/ILocalPacketHandler.hpp>
#include <string>
#include <vector>
namespace arm
{
namespace pipe
{
/// The lowest performance data capture interval we support is 10 miliseconds.
constexpr unsigned int LOWEST_CAPTURE_PERIOD = 10000u;
} // namespace pipe
} // namespace arm
namespace armnn
{
namespace profiling
{
struct ProfilingOptions {
ProfilingOptions()
: m_EnableProfiling(false), m_TimelineEnabled(false), m_OutgoingCaptureFile(""),
m_IncomingCaptureFile(""), m_FileOnly(false), m_CapturePeriod(arm::pipe::LOWEST_CAPTURE_PERIOD),
m_FileFormat("binary"), m_LocalPacketHandlers() {}
/// Indicates whether external profiling is enabled or not.
bool m_EnableProfiling;
/// Indicates whether external timeline profiling is enabled or not.
bool m_TimelineEnabled;
/// Path to a file in which outgoing timeline profiling messages will be stored.
std::string m_OutgoingCaptureFile;
/// Path to a file in which incoming timeline profiling messages will be stored.
std::string m_IncomingCaptureFile;
/// Enable profiling output to file only.
bool m_FileOnly;
/// The duration at which captured profiling messages will be flushed.
uint32_t m_CapturePeriod;
/// The format of the file used for outputting profiling data.
std::string m_FileFormat;
std::vector <armnn::profiling::ILocalPacketHandlerSharedPtr> m_LocalPacketHandlers;
};
} // namespace profiling
} // namespace armnn
|