From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/classarmnn_1_1_scoped_profiling_event.xhtml | 234 ++++++++++++++++++++++ 1 file changed, 234 insertions(+) create mode 100644 20.02/classarmnn_1_1_scoped_profiling_event.xhtml (limited to '20.02/classarmnn_1_1_scoped_profiling_event.xhtml') diff --git a/20.02/classarmnn_1_1_scoped_profiling_event.xhtml b/20.02/classarmnn_1_1_scoped_profiling_event.xhtml new file mode 100644 index 0000000000..a2e362833a --- /dev/null +++ b/20.02/classarmnn_1_1_scoped_profiling_event.xhtml @@ -0,0 +1,234 @@ + + + + + + + + + + + + + +ArmNN: ScopedProfilingEvent Class Reference + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.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 std::string &name, Args... args)
 
 ~ScopedProfilingEvent ()
 
+

Detailed Description

+
+

Definition at line 112 of file Profiling.hpp.

+

Member Typedef Documentation

+ +

◆ InstrumentPtr

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

Definition at line 115 of file Profiling.hpp.

+ +
+
+

Constructor & Destructor Documentation

+ +

◆ ScopedProfilingEvent()

+ +
+
+ + + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + +
ScopedProfilingEvent (const BackendIdbackendId,
const std::string & name,
Args... args 
)
+
+inline
+
+ +

Definition at line 118 of file Profiling.hpp.

+
119  : m_Event(nullptr)
120  , m_Profiler(ProfilerManager::GetInstance().GetProfiler())
121  {
122  if (m_Profiler && m_Profiler->IsProfilingEnabled())
123  {
124  std::vector<InstrumentPtr> instruments(0);
125  instruments.reserve(sizeof...(args)); //One allocation
126  ConstructNextInVector(instruments, args...);
127  m_Event = m_Profiler->BeginEvent(backendId, name, std::move(instruments));
128  }
129  }
static ProfilerManager & GetInstance()
Definition: Profiling.cpp:487
+
bool IsProfilingEnabled() override
Checks whether profiling is enabled.
Definition: Profiling.cpp:191
+
Event * BeginEvent(const BackendId &backendId, const std::string &name, std::vector< InstrumentPtr > &&instruments)
Definition: Profiling.cpp:201
+
+
+
+ +

◆ ~ScopedProfilingEvent()

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

Definition at line 131 of file Profiling.hpp.

+ +

References armnn::IgnoreUnused().

+
132  {
133  if (m_Profiler && m_Event)
134  {
135  m_Profiler->EndEvent(m_Event);
136  }
137  }
void EndEvent(Event *event)
Definition: Profiling.cpp:218
+
+
+
+
The documentation for this class was generated from the following file: +
+
+ + + + -- cgit v1.2.1