23.05
|
Namespaces | |
dataset | |
detail | |
Data Structures | |
class | CommonOptions |
Common command line options used to configure the framework. More... | |
class | DataTestCase |
Data test case class. More... | |
class | DataTestCaseFactory |
Implementation of a test case factory to create data test cases. More... | |
class | FileNotFound |
Error class for when some external assets are missing. More... | |
class | Fixture |
Abstract fixture class. More... | |
class | Framework |
Main framework class. More... | |
struct | FrameworkConfig |
Framework configuration structure. More... | |
class | Instrument |
Interface for classes that can be used to measure performance. More... | |
struct | InstrumentsInfo |
class | InstrumentsStats |
Generate common statistics for a set of measurements. More... | |
class | ISchedulerUser |
Scheduler user interface. More... | |
class | JSONPrinter |
Implementation of a Printer that produces JSON output. More... | |
class | MaliCounter |
Instrument implementation for mali hw counters. More... | |
struct | Measurement |
Generic measurement that stores values as either double or long long int. More... | |
class | OpenCLClock |
Instrument creating measurements based on the information returned by clGetEventProfilingInfo for each OpenCL kernel executed. More... | |
class | OpenCLMemoryUsage |
Instrument collecting memory usage information for OpenCL. More... | |
class | PMU |
Class provides access to CPU hardware counters. More... | |
class | PMUCounter |
Implementation of an instrument to count CPU cycles. More... | |
class | PrettyPrinter |
Implementation of a Printer that produces human readable output. More... | |
class | Printer |
Abstract printer class used by the Framework to present output. More... | |
class | Profiler |
Profiler class to collect benchmark numbers. More... | |
class | SchedulerClock |
Instrument creating measurements based on the information returned by clGetEventProfilingInfo for each OpenCL kernel executed. More... | |
class | SimpleTestCaseFactory |
Implementation of a test case factory to create non-data test cases. More... | |
class | TestCase |
Abstract test case class. More... | |
class | TestCaseFactory |
Abstract factory class to create test cases. More... | |
class | TestError |
Error class for failures during test execution. More... | |
class | TestFilter |
Test filter class. More... | |
struct | TestInfo |
Information about a test case. More... | |
struct | TestResult |
Class to store results of a test. More... | |
class | WallClock |
Implementation of an instrument to measure elapsed wall-clock time in milliseconds. More... | |
Typedefs | |
using | InstrumentsDescription = std::pair< InstrumentType, ScaleFactor > |
using | OpenCLTimer = OpenCLClock< false > |
using | OpenCLTimestamps = OpenCLClock< true > |
using | SchedulerTimer = SchedulerClock< false > |
using | SchedulerTimestamps = SchedulerClock< true > |
using | WallClockTimer = WallClock< false > |
using | WallClockTimestamps = WallClock< true > |
Enumerations | |
enum | DatasetMode : unsigned int { ALL = ~0U, DISABLED = 0, PRECOMMIT = 1, NIGHTLY = 2 } |
Possible dataset modes. More... | |
enum | LogLevel { NONE, CONFIG, TESTS, ERRORS, DEBUG, MEASUREMENTS, ALL } |
Severity of the information. More... | |
enum | ScaleFactor : unsigned int { NONE, SCALE_1K, SCALE_1M, TIME_US, TIME_MS, TIME_S } |
enum | InstrumentType : unsigned int { ALL = ~0U, NONE = 0, WALL_CLOCK_TIMER = 0x0100, PMU = 0x0200, PMU_CYCLE_COUNTER = 0x0201, PMU_INSTRUCTION_COUNTER = 0x0202, MALI = 0x0300, OPENCL_TIMER = 0x0400, SCHEDULER_TIMER = 0x0500, OPENCL_MEMORY_USAGE = 0x0600, WALL_CLOCK_TIMESTAMPS = 0x0700, OPENCL_TIMESTAMPS = 0x0800, SCHEDULER_TIMESTAMPS = 0x0900 } |
enum | LogFormat { NONE, JSON, PRETTY } |
Functions | |
int | make_printable (int8_t value) |
std::string | make_printable (const arm_compute::WeightFormat wf) |
unsigned int | make_printable (uint8_t value) |
template<typename T > | |
T | make_printable (T &&value) |
void | ARM_COMPUTE_PRINT_INFO () |
DatasetMode | dataset_mode_from_name (const std::string &name) |
DatasetMode | operator & (DatasetMode t1, DatasetMode t2) |
DatasetMode | operator| (DatasetMode t1, DatasetMode t2) |
DatasetMode & | operator|= (DatasetMode &t1, DatasetMode t2) |
inline ::std::istream & | operator>> (::std::istream &stream, DatasetMode &mode) |
inline ::std::ostream & | operator<< (::std::ostream &stream, DatasetMode mode) |
std::string | to_string (DatasetMode mode) |
LogLevel | log_level_from_name (const std::string &name) |
::std::istream & | operator>> (::std::istream &stream, LogLevel &level) |
::std::ostream & | operator<< (::std::ostream &stream, LogLevel level) |
std::string | to_string (LogLevel level) |
bool | operator< (const TestInfo &lhs, const TestInfo &rhs) |
InstrumentsDescription | instrument_type_from_name (const std::string &name) |
inline ::std::stringstream & | operator>> (::std::stringstream &stream, InstrumentsDescription &instrument) |
inline ::std::stringstream & | operator<< (::std::stringstream &stream, InstrumentsDescription instrument) |
LogFormat | log_format_from_name (const std::string &name) |
inline ::std::stringstream & | operator>> (::std::stringstream &stream, LogFormat &format) |
inline ::std::stringstream & | operator<< (::std::stringstream &stream, LogFormat format) |
inline ::std::ostream & | operator<< (::std::ostream &stream, TestCaseFactory::Status status) |
void | sleep_in_seconds (float seconds) |
Makes the calling thread to sleep for a specified number of seconds. More... | |
template<typename O , typename F , typename... As, int... S> | |
void | apply_impl (O *obj, F &&func, const std::tuple< As... > &args, detail::sequence< S... >) |
Variables | |
std::unique_ptr< InstrumentsInfo > | instruments_info |
using InstrumentsDescription = std::pair<InstrumentType, ScaleFactor> |
Definition at line 69 of file Instruments.h.
using OpenCLTimer = OpenCLClock<false> |
Definition at line 81 of file OpenCLTimer.h.
using OpenCLTimestamps = OpenCLClock<true> |
Definition at line 82 of file OpenCLTimer.h.
using SchedulerTimer = SchedulerClock<false> |
Definition at line 112 of file SchedulerTimer.h.
using SchedulerTimestamps = SchedulerClock<true> |
Definition at line 113 of file SchedulerTimer.h.
using WallClockTimer = WallClock<false> |
Definition at line 83 of file WallClockTimer.h.
using WallClockTimestamps = WallClock<true> |
Definition at line 84 of file WallClockTimer.h.
|
strong |
Possible dataset modes.
Enumerator | |
---|---|
ALL | |
DISABLED | |
PRECOMMIT | |
NIGHTLY |
Definition at line 40 of file DatasetModes.h.
|
strong |
Enumerator | |
---|---|
ALL | |
NONE | |
WALL_CLOCK_TIMER | |
PMU | |
PMU_CYCLE_COUNTER | |
PMU_INSTRUCTION_COUNTER | |
MALI | |
OPENCL_TIMER | |
SCHEDULER_TIMER | |
OPENCL_MEMORY_USAGE | |
WALL_CLOCK_TIMESTAMPS | |
OPENCL_TIMESTAMPS | |
SCHEDULER_TIMESTAMPS |
Definition at line 46 of file Instruments.h.
|
strong |
|
strong |
Severity of the information.
Each category includes the ones above it.
NONE == Only for filtering. Not used to tag information. CONFIG == Configuration info. TESTS == Information about the tests. ERRORS == Violated assertions/expectations. DEBUG == More violated assertions/expectations. MEASUREMENTS == Information about measurements. ALL == Only for filtering. Not used to tag information.
Enumerator | |
---|---|
NONE | |
CONFIG | |
TESTS | |
ERRORS | |
DEBUG | |
MEASUREMENTS | |
ALL |
Definition at line 50 of file Exceptions.h.
|
strong |
Enumerator | |
---|---|
NONE | |
SCALE_1K | |
SCALE_1M | |
TIME_US | |
TIME_MS | |
TIME_S |
Definition at line 40 of file Instrument.h.
void arm_compute::test::framework::apply_impl | ( | O * | obj, |
F && | func, | ||
const std::tuple< As... > & | args, | ||
detail::sequence< S... > | |||
) |
Definition at line 72 of file Utils.h.
Referenced by arm_compute::test::apply().
|
inline |
Definition at line 64 of file Asserts.h.
References Framework::clear_test_info(), Framework::get(), Framework::log_info(), and Framework::print_test_info().
Referenced by arm_compute::test::validation::combine(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE(), arm_compute::test::validation::FIXTURE_DATA_TEST_CASE_NEW(), arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
DatasetMode dataset_mode_from_name | ( | const std::string & | name | ) |
Definition at line 36 of file DatasetModes.cpp.
References ALL, DISABLED, NIGHTLY, PRECOMMIT, and arm_compute::test::tolower().
Referenced by operator>>(), and operator|=().
InstrumentsDescription instrument_type_from_name | ( | const std::string & | name | ) |
Definition at line 37 of file Instruments.cpp.
References ALL, MALI, NONE, OPENCL_MEMORY_USAGE, OPENCL_TIMER, OPENCL_TIMESTAMPS, PMU, PMU_CYCLE_COUNTER, PMU_INSTRUCTION_COUNTER, SCALE_1K, SCALE_1M, SCHEDULER_TIMER, SCHEDULER_TIMESTAMPS, TIME_MS, TIME_S, TIME_US, arm_compute::test::tolower(), WALL_CLOCK_TIMER, and WALL_CLOCK_TIMESTAMPS.
Referenced by operator>>().
LogFormat log_format_from_name | ( | const std::string & | name | ) |
Definition at line 37 of file Printers.cpp.
References JSON, NONE, PRETTY, and arm_compute::test::tolower().
Referenced by operator>>().
LogLevel log_level_from_name | ( | const std::string & | name | ) |
Definition at line 37 of file Exceptions.cpp.
References ALL, CONFIG, DEBUG, ERRORS, MEASUREMENTS, NONE, TESTS, and arm_compute::test::tolower().
Referenced by operator>>().
|
inline |
Definition at line 42 of file Asserts.h.
Referenced by arm_compute::test::validation::validate(), and arm_compute::test::validation::validate_wrap().
|
inline |
Definition at line 47 of file Asserts.h.
References arm_compute::to_string().
|
inline |
|
inline |
|
inline |
Definition at line 48 of file DatasetModes.h.
References type.
Definition at line 86 of file Framework.h.
References TestInfo::id.
inline ::std::stringstream& arm_compute::test::framework::operator<< | ( | ::std::stringstream & | stream, |
LogFormat | format | ||
) |
std::ostream & operator<< | ( | ::std::ostream & | stream, |
LogLevel | level | ||
) |
Definition at line 68 of file Exceptions.cpp.
References ALL, CONFIG, DEBUG, ERRORS, MEASUREMENTS, NONE, and TESTS.
inline ::std::ostream& arm_compute::test::framework::operator<< | ( | ::std::ostream & | stream, |
DatasetMode | mode | ||
) |
inline ::std::stringstream& arm_compute::test::framework::operator<< | ( | ::std::stringstream & | stream, |
InstrumentsDescription | instrument | ||
) |
Definition at line 81 of file Instruments.h.
References ALL, MALI, NONE, OPENCL_MEMORY_USAGE, OPENCL_TIMER, OPENCL_TIMESTAMPS, PMU, PMU_CYCLE_COUNTER, PMU_INSTRUCTION_COUNTER, SCALE_1K, SCALE_1M, SCHEDULER_TIMER, SCHEDULER_TIMESTAMPS, TIME_MS, TIME_S, TIME_US, WALL_CLOCK_TIMER, and WALL_CLOCK_TIMESTAMPS.
inline ::std::ostream& arm_compute::test::framework::operator<< | ( | ::std::ostream & | stream, |
TestCaseFactory::Status | status | ||
) |
Definition at line 162 of file TestCaseFactory.h.
References TestCaseFactory::ACTIVE, TestCaseFactory::DISABLED, and TestCaseFactory::EXPECTED_FAILURE.
inline ::std::stringstream& arm_compute::test::framework::operator>> | ( | ::std::stringstream & | stream, |
LogFormat & | format | ||
) |
Definition at line 45 of file Printers.h.
References log_format_from_name().
std::istream & operator>> | ( | ::std::istream & | stream, |
LogLevel & | level | ||
) |
Definition at line 60 of file Exceptions.cpp.
References log_level_from_name().
inline ::std::istream& arm_compute::test::framework::operator>> | ( | ::std::istream & | stream, |
DatasetMode & | mode | ||
) |
Definition at line 69 of file DatasetModes.h.
References dataset_mode_from_name().
inline ::std::stringstream& arm_compute::test::framework::operator>> | ( | ::std::stringstream & | stream, |
InstrumentsDescription & | instrument | ||
) |
Definition at line 73 of file Instruments.h.
References instrument_type_from_name().
|
inline |
Definition at line 54 of file DatasetModes.h.
References type.
|
inline |
Definition at line 60 of file DatasetModes.h.
References dataset_mode_from_name(), name, and type.
void arm_compute::test::framework::sleep_in_seconds | ( | float | seconds | ) |
Makes the calling thread to sleep for a specified number of seconds.
[in] | seconds | Amount of seconds to sleep. Will return immediately if less or equal to zero. |
Definition at line 38 of file Utils.cpp.
Referenced by arm_compute::test::arithmetic_to_string(), and Framework::run().
|
inline |
Definition at line 100 of file DatasetModes.h.
References clang_tidy_rules::mode.
Referenced by RangeDataset< T >::iterator::description(), SingletonDataset< T >::iterator::description(), and ContainerDataset< T >::iterator::description().
std::string to_string | ( | LogLevel | level | ) |
std::unique_ptr< InstrumentsInfo > instruments_info |
Definition at line 50 of file Framework.cpp.
Referenced by main(), and SchedulerClock< output_timestamps >::SchedulerClock().