24.08
|
OpenClTimer instrument that times all OpenCl kernels executed between calls to Start() and Stop(). More...
#include <OpenClTimer.hpp>
Public Member Functions | |
OpenClTimer () | |
~OpenClTimer ()=default | |
void | Start () override |
Start the OpenCl timer. More... | |
void | Stop () override |
Stop the OpenCl timer. More... | |
bool | HasKernelMeasurements () const override |
Return true if this Instrument has kernels for recording measurements. More... | |
const char * | GetName () const override |
Get the name of the timer. More... | |
std::vector< Measurement > | GetMeasurements () const override |
Get the recorded measurements. More... | |
Public Member Functions inherited from Instrument | |
virtual | ~Instrument () |
OpenClTimer instrument that times all OpenCl kernels executed between calls to Start() and Stop().
Definition at line 20 of file OpenClTimer.hpp.
OpenClTimer | ( | ) |
Definition at line 17 of file OpenClTimer.cpp.
|
default |
|
overridevirtual |
Get the recorded measurements.
This will be a list of the execution durations for all the OpenCl kernels.
Implements Instrument.
Definition at line 93 of file OpenClTimer.cpp.
References OpenClTimer::GetName().
|
inlineoverridevirtual |
Get the name of the timer.
Implements Instrument.
Definition at line 37 of file OpenClTimer.hpp.
Referenced by OpenClTimer::GetMeasurements().
|
overridevirtual |
Return true if this Instrument has kernels for recording measurements.
Reimplemented from Instrument.
Definition at line 88 of file OpenClTimer.cpp.
|
overridevirtual |
Start the OpenCl timer.
Implements Instrument.
Definition at line 21 of file OpenClTimer.cpp.
References armnn::IgnoreUnused().
|
overridevirtual |