aboutsummaryrefslogtreecommitdiff
path: root/profiling/client/include/ProfilingOptions.hpp
diff options
context:
space:
mode:
authorJim Flynn <jim.flynn@arm.com>2022-03-20 21:52:17 +0000
committerJim Flynn <jim.flynn@arm.com>2022-03-23 20:32:03 +0000
commit277618302d0f131eac0b6ac2015dd3eb09aa6ff9 (patch)
treee468fa1362640484b508812596fb5c1b62186882 /profiling/client/include/ProfilingOptions.hpp
parenta3bc0b4976395226c0fa0898b26098c4534edbdb (diff)
downloadarmnn-277618302d0f131eac0b6ac2015dd3eb09aa6ff9.tar.gz
IVGCVSW-6706 Move headers to profiling/client/include
!android-nn-driver:7337 Change-Id: Ide401623829cc99fb9b51e9bbce3482ce706a8dd Signed-off-by: Jim Flynn <jim.flynn@arm.com>
Diffstat (limited to 'profiling/client/include/ProfilingOptions.hpp')
-rw-r--r--profiling/client/include/ProfilingOptions.hpp45
1 files changed, 45 insertions, 0 deletions
diff --git a/profiling/client/include/ProfilingOptions.hpp b/profiling/client/include/ProfilingOptions.hpp
new file mode 100644
index 0000000000..30d383d92e
--- /dev/null
+++ b/profiling/client/include/ProfilingOptions.hpp
@@ -0,0 +1,45 @@
+//
+// Copyright © 2022 Arm Ltd and Contributors. All rights reserved.
+// SPDX-License-Identifier: MIT
+//
+
+#pragma once
+
+#include "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;
+
+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 <ILocalPacketHandlerSharedPtr> m_LocalPacketHandlers;
+};
+
+} // namespace pipe
+
+} // namespace arm