#include <NeonTimer.hpp>
Definition at line 21 of file NeonTimer.hpp.
◆ KernelMeasurements
◆ NeonTimer()
◆ ~NeonTimer()
◆ GetMeasurements()
Implements Instrument.
Definition at line 52 of file NeonTimer.cpp.
53{
54 std::vector<Measurement> measurements = m_Kernels;
55 unsigned int kernel_number = 0;
56 for (auto & kernel : measurements)
57 {
58 std::string kernelName = std::string(this->GetName()) + "/" + std::to_string(kernel_number++) + ": " + kernel
59 .m_Name;
60 kernel.m_Name = kernelName;
61 }
62 return measurements;
63}
References GetName().
◆ GetName()
| const char * GetName |
( |
| ) |
const |
|
overridevirtual |
◆ HasKernelMeasurements()
| bool HasKernelMeasurements |
( |
| ) |
const |
|
overridevirtual |
◆ Start()
Implements Instrument.
Definition at line 20 of file NeonTimer.cpp.
21{
22 m_Kernels.clear();
23 if (g_Interceptor->GetKernels() != nullptr)
24 {
25 throw RuntimeException("This NeonTimer instance has already been started.");
26 }
27 g_Interceptor->SetKernels(&m_Kernels);
28
29 m_RealSchedulerType = arm_compute::Scheduler::get_type();
30
31 if(m_RealSchedulerType != arm_compute::Scheduler::Type::CUSTOM)
32 {
33
34 m_RealScheduler = &arm_compute::Scheduler::get();
36 }
37}
auto PolymorphicPointerDowncast(const SourceType &value)
Polymorphic downcast for shared pointers and build in pointers.
References armnn::PolymorphicPointerDowncast().
◆ Stop()
Implements Instrument.
Definition at line 39 of file NeonTimer.cpp.
40{
41
42 g_Interceptor->SetKernels(nullptr);
43 arm_compute::Scheduler::set(m_RealSchedulerType);
44 m_RealScheduler = nullptr;
45}
The documentation for this class was generated from the following files: