The class `WinPowerUsage` in the file [windows_powerusage.py] can be added to mozharness/mozharness/mozilla/testing/raptor.py. [mozharness/mozharness/mozilla/testing/raptor.py]: https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/raptor.py#152 [windows_powerusage.py]: https://github.com/gmierz/powerusage-windows-arm64/blob/master/windows_powerusage.py
Bug 1525804 Comment 1 Edit History
Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.
The class `WinPowerUsage` in the file [windows_powerusage.py] can be added to [mozharness/mozharness/mozilla/testing/raptor.py]. [mozharness/mozharness/mozilla/testing/raptor.py]: https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/raptor.py#152 [windows_powerusage.py]: https://github.com/gmierz/powerusage-windows-arm64/blob/master/windows_powerusage.py
The class `WinPowerUsage` in the file [windows_powerusage.py] can be added to [mozharness/mozharness/mozilla/testing/raptor.py]. Note that two things need to be done to run powercfg through python - they can be done automatically in the script mentioned above: (1): Requires Administrator mode. (2): File System Redirection must be disabled. [mozharness/mozharness/mozilla/testing/raptor.py]: https://searchfox.org/mozilla-central/source/testing/mozharness/mozharness/mozilla/testing/raptor.py#152 [windows_powerusage.py]: https://github.com/gmierz/powerusage-windows-arm64/blob/master/windows_powerusage.py