aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/Framework.h
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2017-10-31 17:59:17 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitce58a9f8f8504c165ca4527bfd991a4029437cba (patch)
treec4360d11603912aa2e1915e5c25e42062218aaa5 /tests/framework/Framework.h
parent82afedf2598c8fc5a428ecbd729dd8204b46fd43 (diff)
downloadComputeLibrary-ce58a9f8f8504c165ca4527bfd991a4029437cba.tar.gz
COMPMID-622 Let the user choose the units for the instruments
Change-Id: Ic6ac4cd6df6970593a5e2e6310b6d61951c88898 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93887 Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/framework/Framework.h')
-rw-r--r--tests/framework/Framework.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/framework/Framework.h b/tests/framework/Framework.h
index 1d7efee59f..d7a9cfba9b 100644
--- a/tests/framework/Framework.h
+++ b/tests/framework/Framework.h
@@ -93,7 +93,7 @@ public:
*
* @return Set of all available instrument types.
*/
- std::set<InstrumentType> available_instruments() const;
+ std::set<InstrumentsDescription> available_instruments() const;
/** Init the framework.
*
@@ -106,7 +106,7 @@ public:
* @param[in] id_filter String to match selected test ids. Only matching tests will be executed.
* @param[in] log_level Verbosity of the output.
*/
- void init(const std::vector<InstrumentType> &instruments, int num_iterations, DatasetMode mode, const std::string &name_filter, const std::string &id_filter, LogLevel log_level);
+ void init(const std::vector<framework::InstrumentsDescription> &instruments, int num_iterations, DatasetMode mode, const std::string &name_filter, const std::string &id_filter, LogLevel log_level);
/** Add a new test suite.
*
@@ -328,14 +328,14 @@ private:
std::vector<Printer *> _printers{};
using create_function = std::unique_ptr<Instrument>();
- std::map<InstrumentType, create_function *> _available_instruments{};
-
- std::set<InstrumentType> _instruments{ InstrumentType::NONE };
- TestFilter _test_filter{};
- LogLevel _log_level{ LogLevel::ALL };
- const TestInfo *_current_test_info{ nullptr };
- TestResult *_current_test_result{ nullptr };
- std::vector<std::string> _test_info{};
+ std::map<InstrumentsDescription, create_function *> _available_instruments{};
+
+ std::set<framework::InstrumentsDescription> _instruments{ std::pair<InstrumentType, ScaleFactor>(InstrumentType::NONE, ScaleFactor::NONE) };
+ TestFilter _test_filter{};
+ LogLevel _log_level{ LogLevel::ALL };
+ const TestInfo *_current_test_info{ nullptr };
+ TestResult *_current_test_result{ nullptr };
+ std::vector<std::string> _test_info{};
};
template <typename T>