24 #ifndef ARM_COMPUTE_TEST_PMU_COUNTER 25 #define ARM_COMPUTE_TEST_PMU_COUNTER 57 _scale_factor = 1000000;
65 std::string
id()
const override;
66 void start()
override;
71 PMU _pmu_cycles{ PERF_COUNT_HW_CPU_CYCLES };
72 PMU _pmu_instructions{ PERF_COUNT_HW_INSTRUCTIONS };
73 long long _cycles{ 0 };
74 long long _instructions{ 0 };
#define ARM_COMPUTE_ERROR(...)
Print the given message then throw an std::runtime_error.
Class provides access to CPU hardware counters.
MeasurementsMap measurements() const override
Return the latest measurements.
This file contains all available output stages for GEMMLowp on OpenCL.
void stop() override
Stop measuring.
Implementation of an instrument to count CPU cycles.
std::string id() const override
Identifier for the instrument.
Interface for classes that can be used to measure performance.
PMUCounter(ScaleFactor scale_factor)
Construct a PMU counter.
void start() override
Start measuring.
std::map< std::string, Measurement > MeasurementsMap
Map of measurements.