mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
instrumentation/energy_measurement: update for DerivedMetrics
DerivedMeasurements in devlib was changed to return DerivedMetrics instead of Measurements. The former do not have "channel" attribute, so just pass its name to WA's metrics.
This commit is contained in:
parent
7b1cc6fa4e
commit
831515ae8d
@ -255,5 +255,4 @@ class EnergyMeasurement(Instrument):
|
||||
def extract_metrics(self, context):
|
||||
derived_measurements = DerivedEnergyMeasurements.process(self.measurement_csv)
|
||||
for meas in derived_measurements:
|
||||
name = '{}_{}'.format(meas.channel.site, meas.channel.name)
|
||||
context.add_metric(name, meas.value, meas.units)
|
||||
context.add_metric(meas.name, meas.value, meas.units)
|
||||
|
Loading…
x
Reference in New Issue
Block a user