From 8d2ca734165a068478df7cffa46185680b05cd20 Mon Sep 17 00:00:00 2001 From: Nikhil Raj Date: Fri, 24 Feb 2023 10:28:19 +0000 Subject: Update Doxygen docu for 23.02 Signed-off-by: Nikhil Raj Change-Id: Ie6c19a27d50fefab2796b2b5875374e81f5bf971 --- 23.02/classarmnn_1_1_scoped_profiling_event.xhtml | 238 ++++++++++++++++++++++ 1 file changed, 238 insertions(+) create mode 100644 23.02/classarmnn_1_1_scoped_profiling_event.xhtml (limited to '23.02/classarmnn_1_1_scoped_profiling_event.xhtml') diff --git a/23.02/classarmnn_1_1_scoped_profiling_event.xhtml b/23.02/classarmnn_1_1_scoped_profiling_event.xhtml new file mode 100644 index 0000000000..c6dedea6a7 --- /dev/null +++ b/23.02/classarmnn_1_1_scoped_profiling_event.xhtml @@ -0,0 +1,238 @@ + + + + + + + + + + + + + +ArmNN: ScopedProfilingEvent Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  23.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+ +
+
ScopedProfilingEvent Class Reference
+
+
+ +

#include <Profiling.hpp>

+ + + + +

+Public Types

using InstrumentPtr = std::unique_ptr< Instrument >
 
+ + + + + + +

+Public Member Functions

template<typename... Args>
 ScopedProfilingEvent (const BackendId &backendId, const Optional< arm::pipe::ProfilingGuid > &guid, const std::string &name, Args &&... args)
 
 ~ScopedProfilingEvent ()
 
+

Detailed Description

+
+

Definition at line 130 of file Profiling.hpp.

+

Member Typedef Documentation

+ +

◆ InstrumentPtr

+ +
+
+ + + + +
using InstrumentPtr = std::unique_ptr<Instrument>
+
+ +

Definition at line 133 of file Profiling.hpp.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ ScopedProfilingEvent()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ScopedProfilingEvent (const BackendIdbackendId,
const Optional< arm::pipe::ProfilingGuid > & guid,
const std::string & name,
Args &&... args 
)
+
+inline
+
+ +

Definition at line 136 of file Profiling.hpp.

+
140  : m_Event(nullptr)
141  , m_Profiler(ProfilerManager::GetInstance().GetProfiler())
142  {
143  if (m_Profiler && m_Profiler->IsProfilingEnabled())
144  {
145  std::vector<InstrumentPtr> instruments(0);
146  instruments.reserve(sizeof...(args)); //One allocation
147  ConstructNextInVector(instruments, std::forward<Args>(args)...);
148  m_Event = m_Profiler->BeginEvent(backendId, name, std::move(instruments), guid);
149  }
150  }
static ProfilerManager & GetInstance()
Definition: Profiling.cpp:593
+
bool IsProfilingEnabled()
Checks whether profiling is enabled.
Definition: Profiling.cpp:620
+
+
+
+ +

◆ ~ScopedProfilingEvent()

+ +
+
+ + + + + +
+ + + + + + + +
~ScopedProfilingEvent ()
+
+inline
+
+ +

Definition at line 152 of file Profiling.hpp.

+ +

References armnn::IgnoreUnused().

+
153  {
154  if (m_Profiler && m_Event)
155  {
156  m_Profiler->pProfilerImpl->EndEvent(m_Event);
157  }
158  }
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1