aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/printers/JSONPrinter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/framework/printers/JSONPrinter.cpp')
-rw-r--r--tests/framework/printers/JSONPrinter.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/framework/printers/JSONPrinter.cpp b/tests/framework/printers/JSONPrinter.cpp
index 0995ff3594..cf1a4c38cb 100644
--- a/tests/framework/printers/JSONPrinter.cpp
+++ b/tests/framework/printers/JSONPrinter.cpp
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2019 Arm Limited.
+ * Copyright (c) 2017-2019,2021 Arm Limited.
*
* SPDX-License-Identifier: MIT
*
@@ -169,10 +169,15 @@ void JSONPrinter::print_info(const std::string &info)
_infos.push_back(info);
}
-void JSONPrinter::print_measurements(const Profiler::MeasurementsMap &measurements)
+void JSONPrinter::print_profiler_header(const std::string &header_data)
{
print_separator(_first_test_entry);
+ *_stream << header_data;
+}
+void JSONPrinter::print_measurements(const Profiler::MeasurementsMap &measurements)
+{
+ print_separator(_first_test_entry);
*_stream << R"("measurements" : {)";
for(auto i_it = measurements.cbegin(), i_end = measurements.cend(); i_it != i_end;)