Closed Bug 1436614 Opened 6 years ago Closed 6 years ago

Add ghost window metric to Memory.jsm

Categories

(Core :: DOM: Content Processes, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla60
Tracking Status
firefox60 --- fixed

People

(Reporter: erahm, Assigned: erahm)

Details

Attachments

(1 file)

It would be useful to be able to retrieve the ghost window count of all windows. This would be the basis for adding extensions that can surface this info visually in order to help proactively debug ghost windows.

I envision this tying in with the experimental memory WebExtension API (bug 1296898).
This adds a 'ghosts' field to the object returned by Memory.summary.

Mike, this is a super simple change but feel free to redirect if you're not the
right person to review it.
Attachment #8949253 - Flags: review?(mconley)
Comment on attachment 8949253 [details] [diff] [review]
Report ghost windows in Memory.jsm

Review of attachment 8949253 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good, thanks! Is this going to be part of that WebExtension API you're experimenting with?
Attachment #8949253 - Flags: review?(mconley) → review+
(In reply to Mike Conley (:mconley) (:⚙️) from comment #2)
> Comment on attachment 8949253 [details] [diff] [review]
> Report ghost windows in Memory.jsm
> 
> Review of attachment 8949253 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> Looks good, thanks! Is this going to be part of that WebExtension API you're
> experimenting with?

Yeah that's my plan. Thanks for the quick review!
Pushed by erahm@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/21f73ed97e6a
Report ghost windows in Memory.jsm. r=mconley
https://hg.mozilla.org/mozilla-central/rev/21f73ed97e6a
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: