The FxOS Powertool! is intended for FxOS developers to use when optimizing software for power consumption. It is also handy for verifying and fixing power consumption bugs.
This tool requires that you have a USB ammeter device like the Yoctopuce USB ammeter or build your own using the Mozilla ammeter design.
You will also need a battery harness for your FxOS device. The battery harnesses are open source hardware that consist of a 3D printed piece, and a small circuit board. You can find all of the data files for the currently supported FxOS devices below:
The first step is to clone this repo:
$ git clone git://github.com/JonHylands/fxos-powertoolThen isntall the application and dependencies:
$ cd fxos-powertool
$ sudo python ./setup.py installWrite your test suite description file. There is an example in the examples folder. It is a JSON file that looks like this:
{
"title": "My Tests",
"tests": [
"My first test",
"My second test",
"My third test"
]
}Plug in your ammeter device, and hook it up to the battery harness for your device. Then launch the powertool to begin testing.