Closed Bug 1495389 Opened 6 years ago Closed 5 years ago

Remove performance front specifics out of toolbox class

Categories

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

enhancement

Tracking

(firefox66 fixed)

RESOLVED FIXED
Firefox 66
Tracking Status
firefox66 --- fixed

People

(Reporter: ochameau, Assigned: yulia)

References

Details

(Whiteboard: dt-fission)

Attachments

(6 files, 6 obsolete files)

47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
47 bytes, text/x-phabricator-request
Details | Review
Toolbox currently handles performance front instantiation and destruction:
  https://searchfox.org/mozilla-central/source/devtools/client/framework/toolbox.js#3026-3074

Most of this code should be moved to the front class.
The toolbox should only register its event listener and that's it:
  this.performance.on("*", this._onPerformanceFrontEvent);

Moving the initialization code to the front will depend on bug 1495387, while still being able to listen for events will depend on bug 1495386.
Summary: Remove performance front speficics out of toolbox class → Remove performance front specifics out of toolbox class
Priority: -- → P3
Blocks: 1503562
Assignee: nobody → ystartsev
Attachment #9023564 - Attachment is obsolete: true
This returns the old behavior of populating the performanceController with recordings from the
toolbox. This is based on a comment that alex made regarding "console-profile-start" being intrinsic
to the toolbox. This is an optional revision

Depends on D11296
This introduces some more logic to how async fronts are managed in the target. At some point this
will need to be ported to protocol.js' marshalling methods
Depends on D12119
Attachment #9026035 - Attachment is obsolete: true
Attachment #9025669 - Attachment is obsolete: true
Attachment #9025672 - Attachment is obsolete: true
Attachment #9024751 - Attachment is obsolete: true
Attachment #9021823 - Attachment description: Bug 1495389 - move performance front to async initialization; r=ochameau → Bug 1495389 - add test for expected async behavior in the performance front; r=ochameau
Attachment #9024394 - Attachment is obsolete: true
Whiteboard: dt-fission
Depends on: 1514197
Pushed by ystartsev@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/c4e9eae1c922
add test for expected async behavior in the performance front; r=ochameau
https://hg.mozilla.org/integration/autoland/rev/b9ef729af807
adjust test to use new performance front initialization; r=ochameau
https://hg.mozilla.org/integration/autoland/rev/854746ccad9c
refactor toolbox to no longer queue performance events; r=ochameau
https://hg.mozilla.org/integration/autoland/rev/b7b8fe847021
remove destroy method for performance actor; r=ochameau
https://hg.mozilla.org/integration/autoland/rev/4d740f3060ce
remove instances of toolbox.performance; r=ochameau
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: