Compute Library
18.05
|
Instrument implementation for mali hw counters. More...
#include <MaliCounter.h>
Public Member Functions | |
MaliCounter (ScaleFactor scale_factor) | |
Default constructor. More... | |
MaliCounter (const MaliCounter &)=delete | |
Prevent instances of this class from being copy constructed. More... | |
MaliCounter & | operator= (const MaliCounter &)=delete |
Prevent instances of this class from being copied. More... | |
~MaliCounter () | |
Default destructor. More... | |
std::string | id () const override |
Identifier for the instrument. More... | |
void | start () override |
Start measuring. More... | |
void | stop () override |
Stop measuring. More... | |
MeasurementsMap | measurements () const override |
Return the latest measurements. More... | |
![]() | |
Instrument ()=default | |
Default constructor. More... | |
Instrument (const Instrument &)=default | |
Allow instances of this class to be copy constructed. More... | |
Instrument (Instrument &&)=default | |
Allow instances of this class to be move constructed. More... | |
Instrument & | operator= (const Instrument &)=default |
Allow instances of this class to be copied. More... | |
Instrument & | operator= (Instrument &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~Instrument ()=default |
Default destructor. More... | |
virtual void | test_start () |
Start of the test. More... | |
virtual void | test_stop () |
End of the test. More... | |
virtual MeasurementsMap | test_measurements () const |
Return the latest test measurements. More... | |
Additional Inherited Members | |
![]() | |
using | MeasurementsMap = std::map< std::string, Measurement > |
Map of measurements. More... | |
![]() | |
template<typename T , ScaleFactor scale> | |
static std::unique_ptr< Instrument > | make_instrument () |
Helper function to create an instrument of the given type. More... | |
Instrument implementation for mali hw counters.
Definition at line 41 of file MaliCounter.h.
MaliCounter | ( | ScaleFactor | scale_factor | ) |
Default constructor.
[in] | scale_factor | Measurement scale factor; |
Definition at line 110 of file MaliCounter.cpp.
References ARM_COMPUTE_ERROR, arm_compute::test::framework::NONE, arm_compute::test::framework::SCALE_1K, and arm_compute::test::framework::SCALE_1M.
|
delete |
Prevent instances of this class from being copy constructed.
~MaliCounter | ( | ) |
|
overridevirtual |
Identifier for the instrument.
Implements Instrument.
Definition at line 418 of file MaliCounter.cpp.
|
overridevirtual |
Return the latest measurements.
Reimplemented from Instrument.
Definition at line 423 of file MaliCounter.cpp.
References arm_compute::support::cpp11::to_string().
|
delete |
Prevent instances of this class from being copied.
|
overridevirtual |
Start measuring.
Called just before the run of the test starts
Reimplemented from Instrument.
Definition at line 382 of file MaliCounter.cpp.
|
overridevirtual |
Stop measuring.
Called just after the run of the test ends
Reimplemented from Instrument.
Definition at line 389 of file MaliCounter.cpp.