24 #ifndef ARM_COMPUTE_TEST_INSTRUMENT 25 #define ARM_COMPUTE_TEST_INSTRUMENT 57 template <
typename T, ScaleFactor scale>
58 static std::unique_ptr<Instrument> make_instrument();
75 virtual std::string id()
const = 0;
133 template <
typename T, ScaleFactor scale>
136 return std::make_unique<T>(
scale);
virtual void test_start()
Start of the test.
Copyright (c) 2017-2021 Arm Limited.
virtual void test_stop()
End of the test.
virtual MeasurementsMap measurements() const
Return the latest measurements.
Interface for classes that can be used to measure performance.
virtual void start()
Start measuring.
virtual void stop()
Stop measuring.
virtual MeasurementsMap test_measurements() const
Return the latest test measurements.
static std::unique_ptr< Instrument > make_instrument()
Helper function to create an instrument of the given type.
std::map< std::string, Measurement > MeasurementsMap
Map of measurements.