mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-01 19:02:31 +01: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:
@@ -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)
|
||||
|
Reference in New Issue
Block a user