diff options
author | Georgios Pinitas <georgios.pinitas@arm.com> | 2019-12-16 19:59:52 +0000 |
---|---|---|
committer | Michele Di Giorgio <michele.digiorgio@arm.com> | 2020-01-10 18:10:41 +0000 |
commit | 7f15251e2fd6c729a1d8f4f524a4bb902c30cdad (patch) | |
tree | 63d14297c28a1a8296bd0e97dd283f65c2ba528e /tests/benchmark_examples/RunExample.cpp | |
parent | 13ec5f0a09e038f12cbe0f3b119a215934b72b42 (diff) | |
download | ComputeLibrary-7f15251e2fd6c729a1d8f4f524a4bb902c30cdad.tar.gz |
COMPMID-2986: Extend test framework options.
Add the following option to the test framework:
- delay: Allows run delay between tests in seconds.
Signed-off-by: Georgios Pinitas <georgios.pinitas@arm.com>
Change-Id: Ib1b7a1d1ad83c9a99b23f353b1800db075b32bce
Reviewed-on: https://review.mlplatform.org/c/2525
Reviewed-by: Michele Di Giorgio <michele.digiorgio@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Reviewed-by: Gian Marco Iodice <gianmarco.iodice@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/benchmark_examples/RunExample.cpp')
-rw-r--r-- | tests/benchmark_examples/RunExample.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp index f3de308bef..613e985707 100644 --- a/tests/benchmark_examples/RunExample.cpp +++ b/tests/benchmark_examples/RunExample.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2018-2019 ARM Limited. + * Copyright (c) 2018-2020 ARM Limited. * * SPDX-License-Identifier: MIT * @@ -156,7 +156,13 @@ int run_example(int argc, char **argv, std::unique_ptr<Example> example) } } - framework.init(options.instruments->value(), options.iterations->value(), framework::DatasetMode::ALL, "", "", options.log_level->value()); + // Initialize framework + framework::FrameworkConfig fconfig; + fconfig.instruments = options.instruments->value(); + fconfig.num_iterations = options.iterations->value(); + fconfig.log_level = options.log_level->value(); + framework.init(fconfig); + for(auto &p : printers) { framework.add_printer(p.get()); |