Is your feature request related to a problem? Please describe.
Currently, there is no way to handle when measurements exceed max_energy_range_uj for RAPL multiple times. Consider the scenario where start_window measures the energy consumption at 60J. The energy consumption reading in the energy_uj files could exceed max_energy_range_uj and wrap around however many times and there would be no way to get the correct measurement when that happens.
Describe the solution you'd like
Readings of the energy_uj file can be made periodically and the number of times self.last_enrergy is less than the reading from the energy_uj file can be recorded.
Is your feature request related to a problem? Please describe. Currently, there is no way to handle when measurements exceed
max_energy_range_uj
forRAPL
multiple times. Consider the scenario wherestart_window
measures the energy consumption at 60J. The energy consumption reading in theenergy_uj
files could exceedmax_energy_range_uj
and wrap around however many times and there would be no way to get the correct measurement when that happens.Describe the solution you'd like Readings of the
energy_uj
file can be made periodically and the number of timesself.last_enrergy
is less than the reading from theenergy_uj
file can be recorded.