Compute Library
18.05
|
Implementation of a Printer that produces human readable output. More...
#include <PrettyPrinter.h>
Public Member Functions | |
void | set_color_output (bool color_output) |
Set if the output is colored. More... | |
void | print_entry (const std::string &name, const std::string &value) override |
Print an entry consisting of a (name, value) pair. More... | |
void | print_global_header () override |
Print global header. More... | |
void | print_global_footer () override |
Print global footer. More... | |
void | print_run_header () override |
Print header before running all tests. More... | |
void | print_run_footer () override |
Print footer after running all tests. More... | |
void | print_test_header (const TestInfo &info) override |
Print header before a test. More... | |
void | print_test_footer () override |
Print footer after a test. More... | |
void | print_errors_header () override |
Print header before errors. More... | |
void | print_errors_footer () override |
Print footer after errors. More... | |
void | print_error (const std::exception &error, bool expected) override |
Print test error. More... | |
void | print_info (const std::string &info) override |
Print test log info. More... | |
void | print_measurements (const Profiler::MeasurementsMap &measurements) override |
Print measurements for a test. More... | |
void | print_list_tests (const std::vector< TestInfo > &infos) override |
Print the list of all the tests. More... | |
Public Member Functions inherited from Printer | |
Printer ()=default | |
Default constructor. More... | |
Printer (std::ostream &stream) | |
Construct printer with given output stream. More... | |
Printer (const Printer &)=delete | |
Prevent instances of this class from being copy constructed. More... | |
Printer & | operator= (const Printer &)=delete |
Prevent instances of this class from being copied. More... | |
Printer (Printer &&)=default | |
Allow instances of this class to be move constructed. More... | |
Printer & | operator= (Printer &&)=default |
Allow instances of this class to be moved. More... | |
virtual | ~Printer ()=default |
Default destructor. More... | |
void | print (const std::string &str) |
Print given string. More... | |
void | set_stream (std::ostream &stream) |
Set the output stream. More... | |
Implementation of a Printer that produces human readable output.
Definition at line 36 of file PrettyPrinter.h.
|
overridevirtual |
Print an entry consisting of a (name, value) pair.
[in] | name | Description of the value. |
[in] | value | Value. |
Implements Printer.
Definition at line 63 of file PrettyPrinter.cpp.
|
overridevirtual |
Print test error.
[in] | error | Description of the error. |
[in] | expected | Whether the error was expected or not. |
Implements Printer.
Definition at line 106 of file PrettyPrinter.cpp.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Print test log info.
[in] | info | Description of the log. |
Implements Printer.
Definition at line 101 of file PrettyPrinter.cpp.
|
overridevirtual |
Print the list of all the tests.
[in] | infos | List of tests to print |
Implements Printer.
Definition at line 112 of file PrettyPrinter.cpp.
References arm_compute::test::validation::info().
|
overridevirtual |
Print measurements for a test.
[in] | measurements | Measurements as collected by a Profiler. |
Implements Printer.
Definition at line 119 of file PrettyPrinter.cpp.
References arm_compute::test::arithmetic_to_string(), InstrumentsStats::max(), InstrumentsStats::mean(), InstrumentsStats::median(), InstrumentsStats::min(), InstrumentsStats::relative_standard_deviation(), Measurement::unit(), and Measurement::value().
|
overridevirtual |
Print footer after running all tests.
Implements Printer.
Definition at line 80 of file PrettyPrinter.cpp.
|
overridevirtual |
Print header before running all tests.
Implements Printer.
Definition at line 76 of file PrettyPrinter.cpp.
|
overridevirtual |
|
overridevirtual |
Print header before a test.
[in] | info | Test info. |
Implements Printer.
Definition at line 84 of file PrettyPrinter.cpp.
References TestInfo::id, and TestInfo::name.
void set_color_output | ( | bool | color_output | ) |
Set if the output is colored.
[in] | color_output | True if the output is colored. |
Definition at line 58 of file PrettyPrinter.cpp.