Allow profiling the browser toolbox process
Categories
(DevTools :: Performance Tools (Profiler/Timeline), enhancement)
Tracking
(firefox101 fixed)
Tracking | Status | |
---|---|---|
firefox101 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
Details
Attachments
(3 files)
For now, the new profiler is disabled from the browser toolbox.
There is typically two ways to use the new profiler:
- from the panel, within the toolbox, this only applies to local tabs
- from about:debugging, for any remote target
- from the browser toolbar button
But the thing is that the browser toolbox isn't in the scope of about:debugging.
I sounds unecessary complex to follow this track. Recording such profile should be one or two clicks away from the browser toolbox itself.
And as we don't display the browser UI in the browser toolbox process, we don't get the toolbar button. It sounds also complex to try to make it work from the browser toolbox, which only loads the toolbox as a unique toplevel window?
So that it sounds like the best approach would be to make the panel work within the browser toolbox. It will be confusing as it wouldn't debug the Firefox instance the browser toolbox is debugging, but instead it would debug "itself", the Browser Toolbox process.
Assignee | ||
Comment 1•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Comment 3•2 years ago
|
||
I'm not opposed, but I'd like to reflect on two sentences you wrote:
(In reply to Alexandre Poirot [:ochameau] from comment #0)
1:
I sounds unecessary complex to follow this track. Recording such profile should be one or two clicks away from the browser toolbox itself.
2:
It will be confusing as it wouldn't debug the Firefox instance the browser toolbox is debugging, but instead it would debug "itself", the Browser Toolbox process.
From the first sentence: is that true that "recording such profile should be one or two clicks away from the browser toolbox"? I'm not so sure, because the browser toolbox' primary users are Firefox Frontend developers, but this feature's primary users are Devtools developers. (<= is that true? Maybe my own assumptions are wrong :-) )
From the second sentence: I agree completely, this would be confusing to most current users of the browser toolbox.
from about:debugging, for any remote target
This sounds like the most interesting to me, because this would make it possible to use the other tools with the browser toolbox as well! The inspector, the debugger, etc... Wouldn't the devtools developers be interested in this?
Again, I'm not opposed to the approach you propose, especially if you think it can unblock you. But wanted to outline this still :-)
Assignee | ||
Comment 4•2 years ago
|
||
And pass a toolbox instead of only the toplevel target.
It helps identify the browser toolbox and easily enable/disable tools for it.
Updated•2 years ago
|
Updated•2 years ago
|
Pushed by apoirot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/775ba0c2e92d [devtools] Migrate Tool's definition isTargetSupport to isToolSupported. r=nchevobbe https://hg.mozilla.org/integration/autoland/rev/21fe563b3aa1 [devtools] Enable the new profiler on the browser toolbox. r=nchevobbe,julienw https://hg.mozilla.org/integration/autoland/rev/5a4edbc7bf26 [devtools] Allow recording the browser toolbox startup by setting MOZ_BROWSER_TOOLBOX_PROFILER_STARTUP=1. r=nchevobbe
Comment 6•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/775ba0c2e92d
https://hg.mozilla.org/mozilla-central/rev/21fe563b3aa1
https://hg.mozilla.org/mozilla-central/rev/5a4edbc7bf26
Description
•