Closed
Bug 1249788
Opened 9 years ago
Closed 9 years ago
Ability to view retaining paths of nodes in census category
Categories
(DevTools :: Memory, defect, P1)
DevTools
Memory
Tracking
(firefox48 fixed)
RESOLVED
FIXED
Firefox 48
Tracking | Status | |
---|---|---|
firefox48 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
Details
(Keywords: dev-doc-complete)
Attachments
(2 files, 7 obsolete files)
(deleted),
image/gif
|
Details | |
(deleted),
patch
|
fitzgen
:
review+
|
Details | Diff | Splinter Review |
When working with the leaking MouseEvents in https://github.com/TatumCreative/bunny-memory-leak, it was frustrating that we could see that MouseEvents were leaking but couldn't view their retained paths. Retaining paths only make sense for individual objects, and the only view we have dealing with individual objects right now is the dominator tree, so bug 1149385 only adds shortest retaining paths for dominator tree items. The problem is the dominator tree sorts nodes by largest retained size and the MouseEvents were small in comparison.
See also bug 1243091, which is the best long term solution for leaks, but we may be able to get some short term wins with this bug.
Assignee | ||
Updated•9 years ago
|
Has STR: --- → irrelevant
Priority: -- → P2
Assignee | ||
Updated•9 years ago
|
Priority: P2 → P1
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → nfitzgerald
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
Note that this patch is stand alone enough that extant tests pass, but the
INDIVIDUALS view state changes a little more in later patches. Still hopefully
easier to review with this split out.
Attachment #8739558 -
Flags: review?(jsantell)
Assignee | ||
Comment 2•9 years ago
|
||
Mechanical renaming. Just needs a rubber stamp.
Attachment #8739559 -
Flags: review?(jsantell)
Assignee | ||
Comment 3•9 years ago
|
||
And the meat of it all.
Attachment #8739560 -
Flags: review?(jsantell)
Assignee | ||
Comment 4•9 years ago
|
||
Assignee | ||
Comment 5•9 years ago
|
||
Demo!
Assignee | ||
Updated•9 years ago
|
Attachment #8739560 -
Attachment is obsolete: true
Attachment #8739560 -
Flags: review?(jsantell)
Assignee | ||
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
Comment on attachment 8739558 [details] [diff] [review]
Part 0: Add the INDIVIDUALS view state to the memory panel
Review of attachment 8739558 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/client/memory/components/toolbar.js
@@ +144,5 @@
> )
> )
> : null;
> + } else if (view.state === viewState.INDIVIDUALS){
> + assert(false, "TODO FITZGEN");
Should have a helpful assertion here
::: devtools/client/memory/reducers/view.js
@@ +20,5 @@
> + const { newViewState, oldDiffing, oldSelected } = action;
> + assert(newViewState);
> +
> + if (newViewState === viewState.INDIVIDUALS) {
> + assert(oldDiffing || oldSelected);
needs second arg
Attachment #8739558 -
Flags: review?(jsantell) → review+
Comment 9•9 years ago
|
||
Comment on attachment 8739559 [details] [diff] [review]
Part 1: Rename "dominator tree display" to "label display"
Review of attachment 8739559 [details] [diff] [review]:
-----------------------------------------------------------------
No l10n changes needed here?
Attachment #8739559 -
Flags: review?(jsantell) → review+
Comment 10•9 years ago
|
||
Comment on attachment 8739566 [details] [diff] [review]
Part 2: Implement the census individuals view
Review of attachment 8739566 [details] [diff] [review]:
-----------------------------------------------------------------
::: devtools/shared/heapsnapshot/CensusUtils.js
@@ +437,5 @@
> * @overrides Visitor.prototype.enter
> */
> GetLeavesVisitor.prototype.enter = function(breakdown, report, edge) {
> this._index++;
> + console.log("FITZGEN: GetLeavesVisitor/enter:", report);
oops, few console logs in this file
Attachment #8739566 -
Flags: review?(jsantell) → review+
Assignee | ||
Comment 11•9 years ago
|
||
Rolled up the patches into one and addressed review comments.
Attachment #8740141 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8739558 -
Attachment is obsolete: true
Attachment #8739559 -
Attachment is obsolete: true
Attachment #8739566 -
Attachment is obsolete: true
Assignee | ||
Comment 12•9 years ago
|
||
Fix test failures introduced when rebasing + fixing up.
Attachment #8740214 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8740141 -
Attachment is obsolete: true
Comment 14•9 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox48:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → Firefox 48
Comment 15•9 years ago
|
||
Can someone explain the meaning of multiple "# TODO FITZGEN" in memory.properties?
I also wonder about the accessibility of characters like ← or ⁂
Assignee | ||
Comment 16•9 years ago
|
||
D'oh, that's what I get for grepping for TODO in devtools/client/memory and not in all of devtools proper :-/
Will land a follow up soon.
Assignee | ||
Comment 17•9 years ago
|
||
Jim, I'm passing this review to you since Jordan has left us. Small follow up
for some really dumb logs/comments that should not have landed with the original
patch.
Attachment #8740635 -
Flags: review?(jimb)
Assignee | ||
Updated•9 years ago
|
Attachment #8740214 -
Attachment is obsolete: true
Assignee | ||
Comment 18•9 years ago
|
||
Comment 19•9 years ago
|
||
Comment on attachment 8740635 [details] [diff] [review]
Follow up: remove debug logs and TODO comments that should not have landed
Review of attachment 8740635 [details] [diff] [review]:
-----------------------------------------------------------------
Just some typos.
::: devtools/client/locales/en-US/memory.properties
@@ +181,5 @@
> # tool's filter search box.
> filter.tooltip=Filter the contents of the heap snapshot
>
> +# LOCALIZATION NOTE (tree-tiem.view-individuals.tooltip): The tooltip for the
> +# button to view individuals in this group.
"tree-tiem"
@@ +311,5 @@
> # snapshot state ERROR, used in the main heap view.
> snapshot.state.error.full=There was an error processing this snapshot.
>
> +# LOCALIZATION NOTE (individuals.state.error): The short message displayed when
> +# there is an error fetching indiduals from a group.
"indiduals"
@@ +316,4 @@
> individuals.state.error=Error
>
> +# LOCALIZATION NOTE (individuals.state.error.full): The longer message displayed
> +# when there is an error fetching indiduals from a group.
"indiduals"
Attachment #8740635 -
Flags: review?(jimb) → review+
Assignee | ||
Comment 20•9 years ago
|
||
Attachment #8740646 -
Flags: review+
Assignee | ||
Updated•9 years ago
|
Attachment #8740635 -
Attachment is obsolete: true
Assignee | ||
Updated•9 years ago
|
Keywords: checkin-needed
Comment 21•9 years ago
|
||
Keywords: checkin-needed
Comment 22•9 years ago
|
||
bugherder |
Updated•9 years ago
|
Keywords: dev-doc-needed
Comment 24•9 years ago
|
||
I've added some docs for this, here: https://developer.mozilla.org/en-US/docs/Tools/Memory/Aggregate_view#Type
Please let me know if this covers it!
Flags: needinfo?(nfitzgerald)
Updated•9 years ago
|
Keywords: dev-doc-needed → dev-doc-complete
Updated•6 years ago
|
Product: Firefox → DevTools
You need to log in
before you can comment on or make changes to this bug.
Description
•