1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-21 20:38:57 +00:00

instrument/energy_measurement: Invoke teardown method for backends

Forward the teardown method invocation to the instrument backend.
This commit is contained in:
Marc Bonnici 2019-10-02 16:19:18 +01:00 committed by setrofim
parent 0166180f30
commit 3bef4fc92d

View File

@ -510,3 +510,7 @@ class EnergyMeasurement(Instrument):
units = metrics[0].units
value = sum(m.value for m in metrics)
context.add_metric(name, value, units)
def teardown(self, context):
for instrument in self.instruments.values():
instrument.teardown()