aboutsummaryrefslogtreecommitdiff
path: root/tests/framework/instruments/PMUCounter.cpp
diff options
context:
space:
mode:
authorGiorgio Arena <giorgio.arena@arm.com>2017-10-31 17:59:17 +0000
committerAnthony Barbier <anthony.barbier@arm.com>2018-11-02 16:35:24 +0000
commitce58a9f8f8504c165ca4527bfd991a4029437cba (patch)
treec4360d11603912aa2e1915e5c25e42062218aaa5 /tests/framework/instruments/PMUCounter.cpp
parent82afedf2598c8fc5a428ecbd729dd8204b46fd43 (diff)
downloadComputeLibrary-ce58a9f8f8504c165ca4527bfd991a4029437cba.tar.gz
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 <jeremy.johnson+kaizengerrit@arm.com> Reviewed-by: Anthony Barbier <anthony.barbier@arm.com>
Diffstat (limited to 'tests/framework/instruments/PMUCounter.cpp')
-rw-r--r--tests/framework/instruments/PMUCounter.cpp4
1 files changed, 2 insertions, 2 deletions
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