24.02.1
|
Go to the documentation of this file.
24 #ifndef ARM_COMPUTE_TEST_INSTRUMENT
25 #define ARM_COMPUTE_TEST_INSTRUMENT
57 template <
typename T, ScaleFactor scale>
75 virtual std::string
id()
const = 0;
126 return std::string{};
142 template <
typename T, ScaleFactor scale>
145 return std::make_unique<T>(
scale);
virtual void test_start()
Start of the test.
virtual void start()
Start measuring.
virtual MeasurementsMap test_measurements() const
Return the latest test measurements.
virtual MeasurementsMap measurements() const
Return the latest measurements.
Instrument()=default
Default constructor.
virtual std::string id() const =0
Identifier for the instrument.
Interface for classes that can be used to measure performance.
Instrument & operator=(const Instrument &)=default
Allow instances of this class to be copied.
virtual ~Instrument()=default
Default destructor.
virtual void test_stop()
End of the test.
virtual std::string instrument_header() const
Return JSON formatted instrument header string.
Copyright (c) 2017-2024 Arm Limited.
static std::unique_ptr< Instrument > make_instrument()
Helper function to create an instrument of the given type.
virtual void stop()
Stop measuring.
std::map< std::string, Measurement > MeasurementsMap
Map of measurements.