From 09e4f98e31a9bb77bebeccd59c70f0715ab2c292 Mon Sep 17 00:00:00 2001 From: Moritz Pflanzer Date: Wed, 30 Aug 2017 12:47:06 +0100 Subject: COMPMID-482: Refactor PMU counters Change-Id: I9b254ce693363ecbbd7c188d211c85471134a91e Reviewed-on: http://mpd-gerrit.cambridge.arm.com/84328 Reviewed-by: Anthony Barbier Tested-by: Kaizen --- tests/framework/printers/PrettyPrinter.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'tests/framework/printers/PrettyPrinter.cpp') diff --git a/tests/framework/printers/PrettyPrinter.cpp b/tests/framework/printers/PrettyPrinter.cpp index b0892a4a50..2f7df1837a 100644 --- a/tests/framework/printers/PrettyPrinter.cpp +++ b/tests/framework/printers/PrettyPrinter.cpp @@ -23,7 +23,8 @@ */ #include "PrettyPrinter.h" -#include "tests/framework/Framework.h" +#include "../Framework.h" +#include "../instruments/Measurement.h" #include @@ -112,12 +113,12 @@ void PrettyPrinter::print_measurements(const Profiler::MeasurementsMap &measurem { *_stream << begin_color("3") << " " << instrument.first << ":"; - 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; }; @@ -132,7 +133,7 @@ void PrettyPrinter::print_measurements(const Profiler::MeasurementsMap &measurem num_values -= 2; } - Instrument::Measurement avg{ sum_values / num_values, minmax_values.first->unit }; + Measurement avg{ sum_values / num_values, minmax_values.first->unit }; *_stream << " "; *_stream << "AVG=" << avg << ", "; -- cgit v1.2.1