Closed Bug 1662846 Opened 5 years ago Closed 4 years ago

Add reporter for loaded JSMs

Categories

(Core :: XPConnect, task, P2)

task

Tracking

()

RESOLVED FIXED
87 Branch
Tracking Status
firefox87 --- fixed

People

(Reporter: mccr8, Assigned: kmag)

Details

Attachments

(1 file)

It would be nice to tell at a glance in a memory report which JSMs are loaded.

It would also make it easier to tell if some change caused an additional JSM to be loaded.

This would be an "other measurements" reporter that would iterate over the set of loaded modules from somewhere in mozJSComponentLoader.

Note we already have a list of these in Cu.loadedModules for the sake of the startup performance mochitests.

Nika says this would be helpful and not hard to do.

Priority: -- → P2

This would be a good introductory bug for somebody who wants to become more familiar with our JSM loading (should such a person exist).

This makes it much easier to determine which modules and components are loaded
in which processes now that they no longer each have their own compartments.

Assignee: nobody → kmaglione+bmo
Status: NEW → ASSIGNED

There's a r+ patch which didn't land and no activity in this bug for 2 weeks.
:kmag, could you have a look please?
For more information, please visit auto_nag documentation.

Flags: needinfo?(kmaglione+bmo)
Pushed by maglione.k@gmail.com: https://hg.mozilla.org/integration/autoland/rev/748d8c28435d Add memory reporter for loaded JS modules and components. r=mccr8
Flags: needinfo?(kmaglione+bmo)
Pushed by maglione.k@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e67edffd1e83 Add memory reporter for loaded JS modules and components. r=mccr8
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 87 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: