Closed
Bug 713778
Opened 13 years ago
Closed 13 years ago
nsICycleCollectorListener should not enable trace_all by default
Categories
(Core :: XPCOM, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(1 file)
4.00 KB,
patch
|
mccr8
:
review+
|
Details | Diff | Splinter Review |
We optimize many edges out, but nsICycleCollectorListener doesn't know about it
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → bugs
Assignee | ||
Comment 1•13 years ago
|
||
This changes the default to be more useful, IMO, but the old
WANT_ALL_TRACES is still possible if one
uses
window.QueryInterface(Components.interfaces.nsIInterfaceRequestor).
getInterface(Components.interfaces.nsIDOMWindowUtils).
garbageCollect(Components.classes["@mozilla.org/cycle-collector-logger;1"]
.createInstance(Components.interfaces.nsICycleCollectorListener).allTraces())
So, it is enough to just call allTraces(), and since the method returns the listener itself,
no need to store the listener in any temporary variable.
Attachment #585081 -
Flags: review?(continuation)
Comment 2•13 years ago
|
||
Comment on attachment 585081 [details] [diff] [review]
patch
Review of attachment 585081 [details] [diff] [review]:
-----------------------------------------------------------------
Nice. I think this will be a more useful default. WANT_ALL_TRACES is good for leak hunting, but not for CC performance analysis.
I assume the existing JS incantation will continue to work? If not, you should update the wiki entry at https://wiki.mozilla.org/Performance:Leak_Tools#Cycle_collector_heap_dump . Either way, you should probably add this new way to invoke it there.
Attachment #585081 -
Flags: review?(continuation) → review+
Assignee | ||
Comment 3•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/d98fbf3cbd71
I updated also the wiki page.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•