mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-21 20:38:57 +00:00
hwmon: print both before/after and mean temperatures
Print both before/after and mean temperatures of DCC and MCC Example: mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp DCC",34.062,Celsius mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp DCC before",33.849,Celsius mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp DCC after",34.275,Celsius mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp MCC",45.432,Celsius mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp MCC before",45.432,Celsius mp_a7bc_w01,bbench_with_audio,1,"arm,vexpress-temp MCC after",45.432,Celsius Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
This commit is contained in:
parent
cb89bd5708
commit
6e72ad0cc3
@ -113,6 +113,8 @@ class HwmonInstrument(Instrument):
|
||||
context.result.add_metric(sensor.label, diff, units)
|
||||
elif report_type == 'before/after':
|
||||
before, after = sensor.readings
|
||||
mean = conversion((after + before) / 2)
|
||||
context.result.add_metric(sensor.label, mean, units)
|
||||
context.result.add_metric(sensor.label + ' before', conversion(before), units)
|
||||
context.result.add_metric(sensor.label + ' after', conversion(after), units)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user