Integrate windows 10 arm64 power usage gathering into raptor.
Categories
(Testing :: Raptor, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: sparky, Unassigned)
References
Details
Attachments
(1 file)
|
29.02 KB,
text/plain
|
Details |
This bug is for integrating a windows10 arm64 power usage runner into raptor. Based on bug 1522175, we can use parts of the powercfg gathering and parsing tool found here: https://github.com/gmierz/powerusage-windows-arm64
| Reporter | ||
Comment 1•6 years ago
•
|
||
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.
| Reporter | ||
Comment 2•6 years ago
|
||
Here's a file for raptor which makes use of the power usage measurement tool - giving us a global measure of power usage for the raptor test when run. It makes use of windows_powerusage.py (mentioned in the comments above).
I think it could be more granular than this as well by starting and stopping in different areas.
| Reporter | ||
Comment 3•6 years ago
|
||
:rwood, would you know of another place I could start/stop recording the power usage data? Right now, I start gathering data here, and end gathering right after the command returns.
Comment 4•6 years ago
|
||
(In reply to Greg Mierzwinski [:sparky] from comment #3)
:rwood, would you know of another place I could start/stop recording the power usage data? Right now, I start gathering data here, and end gathering right after the command returns.
This is exciting! I would suggest following the method that Raptor already uses to gather power usage data on Android (which :bc implemented) so that we can keep it consistent in Raptor.
For Android, the code that initiates measuring power (and stops it) is included in Raptor here, it would be cool if you added your Windows power methods here too:
https://searchfox.org/mozilla-central/source/testing/raptor/raptor/power.py
And you'll see the power test is initiated in the main Raptor code here:
and finish is called at all the places where the test may finish. i.e.:
The Android power test code submits the power data to the Raptor control server here:
Which is submitted to Raptor as 'supporting data', here:
And in turn is processed in output (a separate PERFHERDER_DATA json output blob is created for the supporting power data):
It would be good to keep any supporting test data consistent with this flow/frameork. Hope that helps! Any questions feel free to email or ping me, thanks!
Comment 5•6 years ago
|
||
(In reply to Robert Wood [:rwood] from comment #4)
The Android power test code submits the power data to the Raptor control server here:
Correct link here (sorry):
Updated•6 years ago
|
Updated•5 years ago
|
Comment 6•1 year ago
|
||
We're no longer testing against this platform.
Description
•