#include <NeonTimer.hpp>
Definition at line 21 of file NeonTimer.hpp.
◆ KernelMeasurements
◆ NeonTimer()
◆ ~NeonTimer()
◆ GetMeasurements()
Implements Instrument.
Definition at line 50 of file NeonTimer.cpp.
52 std::vector<Measurement> measurements = m_Kernels;
53 unsigned int kernel_number = 0;
54 for (
auto & kernel : measurements)
56 std::string kernelName = std::string(this->
GetName()) +
"/" + std::to_string(kernel_number++) +
": " + kernel
58 kernel.m_Name = kernelName;
References NeonTimer::GetName().
◆ GetName()
const char * GetName |
( |
| ) |
const |
|
overridevirtual |
◆ HasKernelMeasurements()
bool HasKernelMeasurements |
( |
| ) |
const |
|
overridevirtual |
◆ Start()
Implements Instrument.
Definition at line 21 of file NeonTimer.cpp.
25 g_Interceptor->SetKernels(&m_Kernels);
27 m_RealSchedulerType = arm_compute::Scheduler::get_type();
29 if(m_RealSchedulerType != arm_compute::Scheduler::Type::CUSTOM)
32 m_RealScheduler = &arm_compute::Scheduler::get();
33 arm_compute::Scheduler::set(armnn::PolymorphicPointerDowncast<arm_compute::IScheduler>(g_Interceptor));
References ARMNN_ASSERT.
◆ Stop()
Implements Instrument.
Definition at line 37 of file NeonTimer.cpp.
40 g_Interceptor->SetKernels(
nullptr);
41 arm_compute::Scheduler::set(m_RealSchedulerType);
42 m_RealScheduler =
nullptr;
The documentation for this class was generated from the following files: