Skip to content

Energy and battery

Battery complaints arrive without timestamps, without a reproduction, and usually without any way to tell your app apart from the six others that were awake at the same time. This module is how you turn one into a chart.

“What is this app costing right now?” is a live question — capture a session and read the energy counter alongside CPU, GPU and network. See Performance monitoring.

“What drained the battery overnight?” is a historical question, and the live counter cannot answer it because nobody was watching. That is usage history, which reads what the device recorded on its own.

It is an impact figure derived from what the app kept busy, not a milliamp-hour measurement. Treat it comparatively:

  • This build against the previous build, same interaction.
  • Your app against a competitor doing the same thing.
  • The same screen with a feature on and off.

An absolute number on its own is not a finding.

Behaviour Why it costs
Location updates Continuous GPS is one of the most expensive things a phone can do. Precise-when-moving is far cheaper than always-precise.
Keeping the screen awake The display is often the single largest consumer. A view that disables idle timeout costs more than any amount of computation.
Background refresh Cheap once, expensive every fifteen minutes.
Chatty networking Radios cost most when they wake. Ten batched requests beat a hundred trickled ones, even at the same byte count.
Never-idle timers A repeating timer prevents the CPU from reaching its low-power states at all.
Video and animation Continuous GPU work, plus the display at full brightness.
  1. Charge the device to a known level and unplug it.
  2. Capture a fixed interaction — five minutes of the screen in question.
  3. Repeat with the suspected cause removed.
  4. Compare the two energy traces, and the CPU / network / location activity underneath them.
  5. For the overnight case, come back the next day and read usage history instead.

Attach both captures to the ticket. A complaint answered with two traces stops being an argument.

The device’s own Settings → Battery screen gives per-app percentages over 24 hours or 10 days. It is coarse, but it is what the user is looking at when they file the complaint, so it is worth reading the same screen they are.

KeyMob’s history goes further back and breaks the same period down by which hardware each app kept awake.

The data-analysis module — battery and charging, apps and energy use, wireless, sensors and the rest — is a paid feature. See pricing.

Usage history · Performance monitoring · Device information