From ce58a9f8f8504c165ca4527bfd991a4029437cba Mon Sep 17 00:00:00 2001 From: Giorgio Arena Date: Tue, 31 Oct 2017 17:59:17 +0000 Subject: COMPMID-622 Let the user choose the units for the instruments Change-Id: Ic6ac4cd6df6970593a5e2e6310b6d61951c88898 Reviewed-on: http://mpd-gerrit.cambridge.arm.com/93887 Tested-by: Kaizen Reviewed-by: Anthony Barbier --- tests/framework/instruments/PMUCounter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/framework/instruments/PMUCounter.cpp') diff --git a/tests/framework/instruments/PMUCounter.cpp b/tests/framework/instruments/PMUCounter.cpp index b962bd9b2b..df059fbc4e 100644 --- a/tests/framework/instruments/PMUCounter.cpp +++ b/tests/framework/instruments/PMUCounter.cpp @@ -65,8 +65,8 @@ Instrument::MeasurementsMap PMUCounter::measurements() const { return MeasurementsMap { - { "CPU cycles", Measurement(_cycles, "cycles") }, - { "CPU instructions", Measurement(_instructions, "instructions") }, + { "CPU cycles", Measurement(_cycles / _scale_factor, _unit + "cycles") }, + { "CPU instructions", Measurement(_instructions / _scale_factor, _unit + "instructions") }, }; } } // namespace framework -- cgit v1.2.1