From ce58a9f8f8504c165ca4527bfd991a4029437cba Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Tue, 31 Oct 2017 17:59:17 +0000 Subject: 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 Reviewed-by: Anthony Barbier --- tests/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/main.cpp') diff --git a/tests/main.cpp b/tests/main.cpp index 3fb85122c4..69d30af09c 100644 --- a/tests/main.cpp +++ b/tests/main.cpp @@ -67,16 +67,16 @@ int main(int argc, char **argv) #ifdef ARM_COMPUTE_GC GCScheduler::get().default_init(); -#endif /* ARM_COMPUTE_CL */ +#endif /* ARM_COMPUTE_GC */ framework::Framework &framework = framework::Framework::get(); framework::CommandLineParser parser; - std::set allowed_instruments + std::set allowed_instruments { - framework::InstrumentType::ALL, - framework::InstrumentType::NONE, + std::pair(framework::InstrumentType::ALL, framework::ScaleFactor::NONE), + std::pair(framework::InstrumentType::NONE, framework::ScaleFactor::NONE), }; for(const auto &type : framework.available_instruments()) @@ -113,7 +113,7 @@ int main(int argc, char **argv) help->set_help("Show this help message"); auto dataset_mode = parser.add_option>("mode", allowed_modes, framework::DatasetMode::PRECOMMIT); dataset_mode->set_help("For managed datasets select which group to use"); - auto instruments = parser.add_option>("instruments", allowed_instruments, std::initializer_list { framework::InstrumentType::WALL_CLOCK_TIMER }); + auto instruments = parser.add_option>("instruments", allowed_instruments, std::initializer_list { std::pair(framework::InstrumentType::WALL_CLOCK_TIMER, framework::ScaleFactor::NONE) }); instruments->set_help("Set the profiling instruments to use"); auto iterations = parser.add_option>("iterations", 1); iterations->set_help("Number of iterations per test case"); -- cgit v1.2.1