mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 20:09:11 +00:00
Where backends have the capability to collect from multiple devlib Instruments, EnergyMeasurement currently appends 'device' keys to the names of metrics reported by those Instruments. Where multiple Instruments are indeed used, it then sums up equivalent metrics to produce the 'normal' metric without the 'device' keys appended. E.g. If you have two ACME 'devices' enabled you will get something like 'device_total_energy_iio:device0' and 'device_total_energy_iio:device1', which will be summed to produce 'device_total_energy'. However when only one Instrument is actually instantiated, this is not needed and not done. Therefore just directly produce the metric with the name originally given by devlib (i.e. in the example, 'device_total_energy').