Closed Bug 1615413 Opened 4 years ago Closed 4 years ago

Profiling a fresh Android process via about:debugging uses wrong default profiler settings unless settings are toggled

Categories

(DevTools :: about:debugging, defect)

defect
Not set
normal

Tracking

(firefox75 fixed)

RESOLVED FIXED
Firefox 75
Tracking Status
firefox75 --- fixed

People

(Reporter: mstange, Assigned: gregtatum)

Details

Attachments

(1 file)

Steps to reproduce:

  1. Have an Android phone with Firefox Preview Nightly or GeckoView-example on it, with remote debugging enabled, and have it connected to your desktop machine with Firefox Nightly via USB. Start the Android browser app if it's not running.
  2. In Firefox Desktop, go to about:debugging, connect to the browser, open the profiling panel, and expand the Features pane. Do not click any of the checkboxes. On my machine, the first four feature checkboxes are checked, "Native Stacks" being one of them. I'm not sure whether this is the default or whether this was persisted somewhere.
  3. Start profiling, do something on the phone, and grab a profile.

Expected results:
Profiling should have been performed with the "stacks" feature enabled.

Actual results:
The info panel in the obtained profile reveals that this was not the case: Only the "js" and "threads" features were enabled.

Toggling any feature and starting profiling again applies the features correctly. Only when no features are toggled, wrong defaults are used.
Furthermore, once correct features have been applied, restarting the Android process makes the problem re-appear: after a restart of the app, wrong defaults are used again. (A restart is enough; uninstalling and re-installing is not required.)

Flags: needinfo?(gtatum)

The default preset is "web-developer", and the DevTools panel was using that
preset over the custom values until at least one value was tweaked. This patch
changes the UI to only use the "custom" preset when in the DevTools panel. This
panel code will all be removed soon, so this is only a migration step.

Assignee: nobody → gtatum
Status: NEW → ASSIGNED
Flags: needinfo?(gtatum)

I did not include a test in these changes because:

  1. This panel's code is being deleted this month.
  2. We don't have remote profiling tests, since we don't have the infrastructure in place to remotely connect to a phone.
Pushed by gtatum@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/e2147bec7074
Do not use presets in the DevTools panel for performance-new; r=mstange
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 75
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: