Closed Bug 1699646 Opened 5 years ago Closed 5 years ago

Add Android device information to the profiler meta object

Categories

(Core :: Gecko Profiler, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
89 Branch
Tracking Status
firefox88 --- wontfix
firefox89 --- fixed

People

(Reporter: canova, Assigned: canova)

References

Details

Attachments

(1 file)

In the front-end issue :mcomella says that, when folks upload profiles, it's very common to have to ask, "Which device was this profile taken on?" to understand how to interpret the results. We should include the device info in the profile!

That's a great point, and it would be good to see that in the front-end. But we don't have that information currently in the profile data. We should add it to the meta object if we are in an android build. Looks like there are a few options like Build.MANUFACTURER, Build.DEVICE or Build.MODEL that we can use for this information.
See the docs: https://developer.android.com/reference/android/os/Build

Summary: Add device information to the profiler meta object → Add Android device information to the profiler meta object
Assignee: nobody → canaltinova
Status: NEW → ASSIGNED

Hi :mcomella, I just created a patch that adds this information to the profile json.

I've tried different options but ended up using Build.BRAND + Build.MODEL for this. For example, it's returning "motorola Moto G (5)" for the reference device I have (unfortunate that brand is lowercase, but we can change that in the front-end).

You've also mentioned about the Build.DEVICE before but when I was testing with this device, it returned cedric. It looks like this is the codename of this phone and not really user friendly. I wanted to see other phones and searched online, and I came across to these examples:

Samsung Galaxy S, 2.1update1
brand:Samsung
device:GT-I9000
model:GT-I9000

Nexus One, 2.2
brand:google
device:passion
model:Nexus One

So I think it looks like brand + model seems sensible. What do you think about these values? Do you think they are okay?

Flags: needinfo?(michael.l.comella)

I think brand + model seems sensible: I just checked and this is what glean uses. I remember one of the values returning something unintuitive so it must have been Build.DEVICE, based on your research.

Thanks for the quick turn around time!

Flags: needinfo?(michael.l.comella)
Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c34db229aed2 Add Android device information to the profile meta object r=geckoview-reviewers,agi,gerald,julienw

Thanks for the answer! Just landed the back-end patch. I will create a front-end PR to show this information to the profiler info popup next.

Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: