24.02
Main Page
Related Pages
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
v
w
Variables
Typedefs
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
w
Enumerations
a
b
c
d
e
f
g
j
l
m
n
o
p
q
r
s
t
u
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
c
d
e
f
i
j
l
m
o
p
r
s
v
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
v
w
Enumerations
Enumerator
Related Functions
Files
File List
File Members
All
a
b
c
d
e
f
g
h
i
l
m
o
r
s
t
u
v
x
z
Functions
a
b
c
g
i
m
r
s
t
v
z
Variables
Typedefs
Macros
a
c
d
e
f
h
i
l
o
s
t
u
v
x
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
NeonTimer.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2017 Arm Ltd. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
8
#include "
Instrument.hpp
"
9
10
#include <arm_compute/runtime/IScheduler.h>
11
#include <arm_compute/runtime/Scheduler.h>
12
#include <arm_compute/core/CPP/ICPPKernel.h>
13
14
#include <chrono>
15
#include <map>
16
#include <list>
17
18
namespace
armnn
19
{
20
21
class
NeonTimer
:
public
Instrument
22
{
23
public
:
24
using
KernelMeasurements
= std::vector<Measurement>;
25
26
NeonTimer
() =
default
;
27
~NeonTimer
() =
default
;
28
29
void
Start
()
override
;
30
31
void
Stop
()
override
;
32
33
bool
HasKernelMeasurements
()
const override
;
34
35
std::vector<Measurement>
GetMeasurements
()
const override
;
36
37
const
char
*
GetName
()
const override
;
38
39
private
:
40
KernelMeasurements
m_Kernels;
41
arm_compute::IScheduler* m_RealScheduler;
42
arm_compute::Scheduler::Type m_RealSchedulerType;
43
};
44
45
}
armnn::NeonTimer::GetMeasurements
std::vector< Measurement > GetMeasurements() const override
Definition:
NeonTimer.cpp:50
armnn::NeonTimer::Stop
void Stop() override
Definition:
NeonTimer.cpp:37
armnn::NeonTimer::GetName
const char * GetName() const override
Definition:
NeonTimer.cpp:63
armnn::NeonTimer::NeonTimer
NeonTimer()=default
Instrument.hpp
armnn::NeonTimer::~NeonTimer
~NeonTimer()=default
armnn::NeonTimer::HasKernelMeasurements
bool HasKernelMeasurements() const override
Definition:
NeonTimer.cpp:45
armnn::NeonTimer::Start
void Start() override
Definition:
NeonTimer.cpp:21
armnn::Instrument
Definition:
Instrument.hpp:51
armnn
Copyright (c) 2021 ARM Limited and Contributors.
Definition:
01_00_quick_start.dox:6
armnn::NeonTimer
Definition:
NeonTimer.hpp:21
armnn::NeonTimer::KernelMeasurements
std::vector< Measurement > KernelMeasurements
Definition:
NeonTimer.hpp:24
src
backends
neon
NeonTimer.hpp
Generated on Wed Feb 14 2024 16:36:16 for Arm NN by
1.8.17