24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_OPENCL_TIMER
25 #define ARM_COMPUTE_TEST_OPENCL_TIMER
44 template <
bool output_timestamps>
53 std::string
id()
const override;
55 void start()
override;
68 std::list<kernel_info> _kernels;
70 #ifdef ARM_COMPUTE_GRAPH_ENABLED
78 float _scale_factor{};
void stop() override
Stop measuring.
cl_int clEnqueueNDRangeKernel(cl_command_queue command_queue, cl_kernel kernel, cl_uint work_dim, const size_t *global_work_offset, const size_t *global_work_size, const size_t *local_work_size, cl_uint num_events_in_wait_list, const cl_event *event_wait_list, cl_event *event)
OpenCLClock(ScaleFactor scale_factor)
Construct an OpenCL timer.
MeasurementsMap test_measurements() const override
Return the latest test measurements.
void start() override
Start measuring.
void execute_task(ExecutionTask &task)
Wrapper to configure the Khronos OpenCL C++ header.
Interface for classes that can be used to measure performance.
void test_start() override
Start of the test.
Copyright (c) 2017-2024 Arm Limited.
std::string id() const override
Identifier for the instrument.
void test_stop() override
End of the test.
MeasurementsMap measurements() const override
Return the latest measurements.
Instrument creating measurements based on the information returned by clGetEventProfilingInfo for eac...
std::map< std::string, Measurement > MeasurementsMap
Map of measurements.