From 1fa17c2edc51e53c6bd388b332d825208f6562e8 Mon Sep 17 00:00:00 2001 From: Anthony Barbier Date: Thu, 23 Aug 2018 15:44:20 +0100 Subject: COMPMID-1246: Print arguments passed to the tests / benchmarks Change-Id: I2f872a34b37e3b667881045d60bd49f148ea4db6 Reviewed-on: https://eu-gerrit-1.euhpc.arm.com/145424 Tested-by: Jenkins Reviewed-by: Georgios Pinitas --- tests/benchmark_examples/RunExample.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tests/benchmark_examples/RunExample.cpp') diff --git a/tests/benchmark_examples/RunExample.cpp b/tests/benchmark_examples/RunExample.cpp index de3e796d59..9bc0e4380a 100644 --- a/tests/benchmark_examples/RunExample.cpp +++ b/tests/benchmark_examples/RunExample.cpp @@ -46,6 +46,18 @@ using namespace arm_compute; using namespace arm_compute::test; +namespace +{ +std::string command_line(int argc, char **argv) +{ + std::stringstream ss; + for(int i = 0; i < argc; i++) + { + ss << argv[i] << " "; + } + return ss.str(); +} +} // namespace namespace arm_compute { namespace utils @@ -119,6 +131,7 @@ int run_example(int argc, char **argv, std::unique_ptr example) for(auto &p : printers) { p->print_entry("Version", build_information()); + p->print_entry("CommandLine", command_line(argc, argv)); #ifdef ARM_COMPUTE_CL if(opencl_is_available()) { -- cgit v1.2.1