Power measurement for metrics, battery testing and power consumption

Registered by Ricardo Salveti

We got enough tools and data for a better power management analysis, but currently we don't have anything automated as part of the daily image testing (some got done, but not completely finished yet).

Goal is to present the current methods used to measure power, and how the tools can be improved for power measurement automation, and what is the status of the work done by cking/QA over the past few months.

If not part of the image QA cycle, it'd be at least good to have ways (e.g. scripts) for users to easily retrieve the data for their own device (so we can use as part of bug reports, etc).

Blueprint information

Status:
Not started
Approver:
Michael Frey
Priority:
Undefined
Drafter:
Ricardo Salveti
Direction:
Approved
Assignee:
Andy Doan
Definition:
Discussion
Series goal:
Proposed for saucy
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Tools: http://kernel.ubuntu.com/~cking/power-management-tools/

Notes:
Use health-check - run on per app/program basis
Run long duration soak test and get instrumentation from powerd.

(?)

Work Items

Work items:
discuss with plars and autopilot team if/how we could incorporate cking's health-check tool: INPROGRESS
iff we start getting that data, and there's not much jitter, how could it be viewed in dashboard?: TODO
[colin-king] find a new system test that would incorporate cking's tool and the stats of powerd so that it can be later incorporated to our CI: INPROGRESS
[pwlars] understand how we can define and maintain the test thresholds (if it should be part of the tests, and if there's anything we need to do in autopilot): TODO