Closed Bug 1383691 Opened 7 years ago Closed 7 years ago

Performance user/resource entries should be reported in about:memory

Categories

(Core :: DOM: Core & HTML, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla56
Tracking Status
firefox56 --- fixed

People

(Reporter: baku, Assigned: baku)

References

Details

Attachments

(1 file, 1 obsolete file)

      No description provided.
Attached patch measure.patch (obsolete) — Splinter Review
This is the separate bug for the memory report for the Performance API.
Attachment #8889434 - Flags: review?(bzbarsky)
Comment on attachment 8889434 [details] [diff] [review]
measure.patch

>+  nsGlobalWindow* inner = aWindow->IsOuterWindow() ? aWindow->GetCurrentInnerWindowInternal()
>+                                                   : aWindow;

I'd think we only want to report the performance stuff for an inner window, since that's what it's scoped to.

>+  RefPtr<Performance> performance = inner->GetPerformance();

GetPerformance() creates the object if it's not there.  Might be a good idea to add an accessor (e.g. GetExistingPerformanceObject() or something) that just returns mPerformance, with comments pointing out that it's meant for use from here only.

Or better yet, put this code inside nsGlobalWindow::AddSizeOfIncludingThis so that we don't have to create an accessor at all.  Then this will also be able to play nicely with whatever summary stats aWindowTotalSizes is keeping track of.

The rest looks good, but please address the above.
Attachment #8889434 - Flags: review?(bzbarsky) → review-
Attached patch measure.patchSplinter Review
Attachment #8889434 - Attachment is obsolete: true
Attachment #8889740 - Flags: review?(bzbarsky)
Comment on attachment 8889740 [details] [diff] [review]
measure.patch

r=me
Attachment #8889740 - Flags: review?(bzbarsky) → review+
The patch landed with the wrong number (1382768)
https://hg.mozilla.org/integration/mozilla-inbound/rev/b17eb8514a10
https://hg.mozilla.org/mozilla-central/rev/b17eb8514a10
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: