diff options
author | Freddie Liardet <frederick.liardet@arm.com> | 2021-06-17 13:30:11 +0100 |
---|---|---|
committer | frederick.liardet <frederick.liardet@arm.com> | 2021-07-19 14:11:47 +0000 |
commit | 59fd7a722e5bc7e85309d6200bc37a772721a719 (patch) | |
tree | a02958337f472ff4ceaed46c454eaca6f137efe2 /tests/framework/Framework.cpp | |
parent | 67354e0862a1dd171d41cc45aeb8a470d37708d7 (diff) | |
download | ComputeLibrary-59fd7a722e5bc7e85309d6200bc37a772721a719.tar.gz |
Add layer data to JSON output
Add layer data information to SchedulerTimer JSON output.
Resolves: COMPMID-4423
Change-Id: Ife78dee8afc0910cf47b135bc6809cc170ec4ed3
Signed-off-by: Freddie Liardet <frederick.liardet@arm.com>
Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/5923
Reviewed-by: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Georgios Pinitas <georgios.pinitas@arm.com>
Comments-Addressed: Arm Jenkins <bsgcomp@arm.com>
Tested-by: Arm Jenkins <bsgcomp@arm.com>
Diffstat (limited to 'tests/framework/Framework.cpp')
-rw-r--r-- | tests/framework/Framework.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/framework/Framework.cpp b/tests/framework/Framework.cpp index 436aac0a34..e59c5a45e9 100644 --- a/tests/framework/Framework.cpp +++ b/tests/framework/Framework.cpp @@ -209,6 +209,7 @@ void Framework::log_test_end(const TestInfo &info) { func_on_all_printers([&](Printer * p) { + p->print_profiler_header(_test_results.at(info).header_data); p->print_measurements(_test_results.at(info).measurements); }); } @@ -532,6 +533,7 @@ void Framework::run_test(const TestInfo &info, TestCaseFactory &test_factory) } } + result.header_data = profiler.header(); result.measurements = profiler.measurements(); set_test_result(info, result); @@ -630,6 +632,7 @@ void Framework::print_test_results(Printer &printer) const for(const auto &test : _test_results) { printer.print_test_header(test.first); + printer.print_profiler_header(test.second.header_data); printer.print_measurements(test.second.measurements); printer.print_test_footer(); } @@ -679,7 +682,7 @@ std::vector<TestInfo> Framework::test_infos() const for(const auto &factory : _test_factories) { - TestInfo test_info{ id, factory->name(), factory->mode(), factory->status() }; + const TestInfo test_info{ id, factory->name(), factory->mode(), factory->status() }; if(_test_filter->is_selected(test_info)) { |