Closed Bug 1693316 Opened 3 years ago Closed 2 years ago

Enable new Performance panel by default on Release

Categories

(DevTools :: Performance Tools (Profiler/Timeline), task, P3)

task

Tracking

(firefox98 fixed)

RESOLVED FIXED
98 Branch
Tracking Status
firefox98 --- fixed

People

(Reporter: Honza, Assigned: julienw)

References

Details

(Whiteboard: [fxp])

Attachments

(1 file)

When the new Performance panel is enabled in Nightly and beta we can wait for one cycle and enable it on the Release channel.

Honza

Might be blocked by some localization work

Depends on: 1681539, 1682333
Depends on: 1704533

Let's make sure to update the logic in the devtools settings panels if we still want to allow users to revert to the old panel after enabling the new panel by default.

See https://searchfox.org/mozilla-central/rev/072710086ddfe25aa2962c8399fefb2304e8193b/devtools/client/framework/toolbox-options.js#427-435

(In reply to Julian Descottes [:jdescottes] from comment #3)

Let's make sure to update the logic in the devtools settings panels if we still want to allow users to revert to the old panel after enabling the new panel by default.

See https://searchfox.org/mozilla-central/rev/072710086ddfe25aa2962c8399fefb2304e8193b/devtools/client/framework/toolbox-options.js#427-435

This was done in bug 1722458, thanks Julian!

Depends on: 1722458

Hey Julian, do you think that we need to do something around https://searchfox.org/mozilla-central/rev/2aa97aea1085cf1363582725407c514833ad47e4/browser/components/enterprisepolicies/Policies.jsm#582-595 ? For example lock the pref that selects which performance panel we use ? Or other things ? I'm not used to this code, so I don't know really :-)
Thanks!

Flags: needinfo?(jdescottes)

(In reply to Julien Wajsberg [:julienw] from comment #5)

Hey Julian, do you think that we need to do something around https://searchfox.org/mozilla-central/rev/2aa97aea1085cf1363582725407c514833ad47e4/browser/components/enterprisepolicies/Policies.jsm#582-595 ? For example lock the pref that selects which performance panel we use ? Or other things ? I'm not used to this code, so I don't know really :-)
Thanks!

I don't think so. We can ping mkaply for more info, but I think in general we allow a policy to disable devtools completely, but nothing finer than that.

Flags: needinfo?(jdescottes)
Depends on: 1704546
Depends on: 1717031
Depends on: 1671171

Hi Julien, quickly reviewing the blockers here. Beyond the localization of presets, I didn't spot any issue while testing the panel. The profiler UI itself on profiler.firefox.com is not localized, but I assume we don't expect to change i

Depends on: 1639716

Nicolas: I just realized that with the new performance panel, console.profile() was a no-op. As we would like to enable the panel on release, what do you think we should do when console.profile() is used? Should we at least display a helpful message to the user?

Flags: needinfo?(nchevobbe)

ah, I didn't think about console.profile.
I'd say we should try to keep it working in a similar fashion to what we have today in an ideal world. We could print the URL of the captured profile in the console.

Now, as I don't know how much time it would take, we could display a message when the pref is set to true, and print a message to the user saying that the new profiler does not support console.profile for now, with a link to the bug for adding the support, and suggesting to turn off the pref?
It would be great if we could avoid that as this would block us from actually removing the old perf panel.

That being said:

  • console.profile is not in the console spec (https://console.spec.whatwg.org/)
  • I don't know if it's much used
  • with the old perf panel, it only works if you enabled the perf panel in the settings
  • in Chrome, it does work, but the profile does not appear on their "Performance" panel, but on a JS Profile specific panel that you have to turn on from their settings

given all that, I suppose it would be okay if we don't have support for a while, but as always, people might rely on this and we would alter their workflow.

Flags: needinfo?(nchevobbe)

(In reply to Nicolas Chevobbe [:nchevobbe] from comment #9)

ah, I didn't think about console.profile.
I'd say we should try to keep it working in a similar fashion to what we have today in an ideal world. We could print the URL of the captured profile in the console.

Now, as I don't know how much time it would take, we could display a message when the pref is set to true, and print a message to the user saying that the new profiler does not support console.profile for now, with a link to the bug for adding the support, and suggesting to turn off the pref?
It would be great if we could avoid that as this would block us from actually removing the old perf panel

Thanks for the feedback! Your suggestion makes sense, let's file a bug for that.

Depends on: 1730106
Depends on: 1730893
Depends on: 1590317
Assignee: nobody → felash
Attachment #9261335 - Attachment description: WIP: Bug 1693316 - [devtools performance panel] Enable the new performance panel by default in Release r=jdescottes → Bug 1693316 - [devtools performance panel] Enable the new performance panel by default in Release r=jdescottes
Status: NEW → ASSIGNED
No longer depends on: 1682333
Pushed by jwajsberg@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/f14511bb102b
[devtools performance panel] Enable the new performance panel by default in Release r=jdescottes

This is great news, thank you for pushing this across this finish line, Julien!

Honza

🎉🎉🎉

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 98 Branch
Depends on: 1757143

Is the "old performance panel" available still in any way?

I have an MDN bug https://github.com/mdn/browser-compat-data/issues/19347 that asks whether FF supports console.profile.
The evidence suggests that it isn't supported in the new performance panel added here in FF94 (and enabled by default in FF98).

IF the old performance panel is gone then presumably I can mark console.profile as not supported in Firefox from FF98 right?

Flags: needinfo?(felash)

The old performance panel code has been completely removed in v102 (bug 1668219). Until then you could enable it from the devtools settings or a preference.
So maybe you could precise this in the MDN data?

Otherwise yeah it's not supported in the current versions of Firefox. Thanks for asking!

Flags: needinfo?(felash)

Thanks very much Julien! I have created https://github.com/mdn/browser-compat-data/pull/19387 , which just indicates removal of console.profile in FF102. I haven't tried to explain the history/preferences you might use between FF98 and FF101, because I don't think that is needed.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: