mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +00:00
instrument/energy_measurement: Invoke teardown method for backends
Forward the teardown method invocation to the instrument backend.
This commit is contained in:
parent
0166180f30
commit
3bef4fc92d
@ -510,3 +510,7 @@ class EnergyMeasurement(Instrument):
|
|||||||
units = metrics[0].units
|
units = metrics[0].units
|
||||||
value = sum(m.value for m in metrics)
|
value = sum(m.value for m in metrics)
|
||||||
context.add_metric(name, value, units)
|
context.add_metric(name, value, units)
|
||||||
|
|
||||||
|
def teardown(self, context):
|
||||||
|
for instrument in self.instruments.values():
|
||||||
|
instrument.teardown()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user