Open Bug 1893012 Opened 1 year ago Updated 2 months ago

Telemetry probe for battery consumption while Fenix is in the foreground.

Categories

(Firefox for Android :: Performance, enhancement)

All
Android
enhancement

Tracking

()

People

(Reporter: mleclair, Assigned: mleclair)

References

(Blocks 1 open bug)

Details

Attachments

(2 files, 2 obsolete files)

Right now , there is not much understanding on how much power we consume on android. This probe would allow us to look into how much battery we drain every X seconds (up to us to decide, I think 15 seconds is a good starting point).

I propose we use the android api that offers a battery counter in nanowatt hours which is somewhat accurate. This counter will decrease before the phone battery % decreases (at least on my s21 and pixel 6). For instance, on my S21, I would get a reading of 268000 -> 267990 -> 267973 , etc... before it moved from 66% to 65%.

Attached file Data Review (obsolete) —
Attachment #9398194 - Flags: data-review?(royang)
Attachment #9398194 - Attachment is obsolete: true
Attachment #9398194 - Flags: data-review?(royang)
Attached file Data review
Attachment #9398411 - Flags: data-review?(royang)

Comment on attachment 9398411 [details]
Data review

DATA COLLECTION REVIEW RESPONSE:

  1. Is there or will there be documentation that describes the schema for the ultimate data set in a public, complete, and accurate way?

Yes, through the metrics.yaml file and the Glean Dictionary.

  1. Is there a control mechanism that allows the user to turn the data collection on and off?

Yes. This collection is Telemetry so can be controlled through Firefox's Preferences.

  1. If the request is for permanent data collection, is there someone who will monitor the data over time?

mleclair@mozilla.com and perf-telemetry-alerts@mozilla.com will be responsible for monitoring the data over time

  1. Using the category system of data types on the Mozilla wiki, what collection type of data do the requested measurements fall under?

Category 1, Technical data

  1. Is the data collection request for default-on or default-off?

Default on for all channels.

  1. Does the instrumentation include the addition of any new identifiers?

No

  1. Is the data collection covered by the existing Firefox privacy notice?

Yes

  1. Does the data collection use a third-party collection tool?

No

Result: data-review+

Attachment #9398411 - Flags: data-review?(royang) → data-review+

WIP with three different ways of doing it. Tried to tie it to the application lifecycle
Added a marker for battery consumption as well.

WIP with three different ways of doing it. Tried to tie it to the application lifecycle
Added a marker for battery consumption as well.

Attachment #9399708 - Attachment is obsolete: true
Attachment #9399712 - Attachment description: WIP: Bug 1893012 - Added telemetry for battery consumption → Bug 1893012 - Added telemetry for battery consumption r=kaya
See Also: → 1938152
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: