aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/printers/JSONPrinter.cpp
diff options
context:
space:
mode:
authorMoritz Pflanzer <moritz.pflanzer@arm.com>2017-08-30 12:47:06 +0100
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commit09e4f98e31a9bb77bebeccd59c70f0715ab2c292 (patch)
treedcf5992df5961042a221cb426372eeb21a2d8023 /tests/framework/printers/JSONPrinter.cpp
parent906443f38fe2c168f4a0b2db5cd9852865fc4922 (diff)
downloadComputeLibrary-09e4f98e31a9bb77bebeccd59c70f0715ab2c292.tar.gz
COMPMID-482: Refactor PMU counters
Change-Id: I9b254ce693363ecbbd7c188d211c85471134a91e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/84328 Reviewed-by: Anthony Barbier <anthony.barbier@arm.com> Tested-by: Kaizen <jeremy.johnson+kaizengerrit@arm.com>
Diffstat (limited to 'tests/framework/printers/JSONPrinter.cpp')
-rw-r--r--tests/framework/printers/JSONPrinter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/framework/printers/JSONPrinter.cpp b/tests/framework/printers/JSONPrinter.cpp
index bf8fce7844..ae19cae67c 100644
--- a/tests/framework/printers/JSONPrinter.cpp
+++ b/tests/framework/printers/JSONPrinter.cpp
@@ -23,7 +23,8 @@
*/
#include "JSONPrinter.h"
-#include "tests/framework/Framework.h"
+#include "../Framework.h"
+#include "../instruments/Measurement.h"
#include <algorithm>
@@ -133,12 +134,12 @@ void JSONPrinter::print_measurements(const Profiler::MeasurementsMap &measuremen
{
*_stream << R"(")" << i_it->first << R"(" : {)";
- auto add_measurements = [](double a, const Instrument::Measurement & b)
+ auto add_measurements = [](double a, const Measurement & b)
{
return a + b.value;
};
- auto cmp_measurements = [](const Instrument::Measurement & a, const Instrument::Measurement & b)
+ auto cmp_measurements = [](const Measurement & a, const Measurement & b)
{
return a.value < b.value;
};
@@ -153,7 +154,7 @@ void JSONPrinter::print_measurements(const Profiler::MeasurementsMap &measuremen
num_values -= 2;
}
- auto measurement_to_string = [](const Instrument::Measurement & measurement)
+ auto measurement_to_string = [](const Measurement & measurement)
{
return support::cpp11::to_string(measurement.value);
};