Closed
Bug 1180763
Opened 9 years ago
Closed 9 years ago
[jsdbg2] add byte size to tenure promotions log
Categories
(Core :: JavaScript Engine, defect)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla42
Tracking | Status | |
---|---|---|
firefox42 | --- | fixed |
People
(Reporter: fitzgen, Assigned: fitzgen)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
(deleted),
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
sfink
:
review+
|
Details | Diff | Splinter Review |
We should have the byte size of the newly tenured object in the tenure promotions log.
Assignee | ||
Updated•9 years ago
|
Status: NEW → ASSIGNED
Assignee | ||
Comment 1•9 years ago
|
||
Attachment #8632591 -
Flags: review?(sphink)
Assignee | ||
Comment 2•9 years ago
|
||
Attachment #8632592 -
Flags: review?(sphink)
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8632593 -
Flags: review?(sphink)
Assignee | ||
Updated•9 years ago
|
Blocks: memory-platform
Comment 4•9 years ago
|
||
Comment on attachment 8632591 [details] [diff] [review]
Part 0: Document the size property of entries in the tenure promotions log
Review of attachment 8632591 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/src/doc/Debugger/Debugger.Memory.md
@@ +303,5 @@
> `[[Class]]` property, for example "Array", "Date", "RegExp", or (most
> commonly) "Object".
>
> + * *byteSize* is the size of the newly tenured object (within the tenured
> + heap, not the nursery) in bytes.
Maybe point out that this doesn't include any non-GC (malloced) memory that the object might hold onto?
Attachment #8632591 -
Flags: review?(sphink) → review+
Comment 5•9 years ago
|
||
Comment on attachment 8632592 [details] [diff] [review]
Part 1: Add the size of the tenured object to the tenure promotions log entry
Review of attachment 8632592 [details] [diff] [review]:
-----------------------------------------------------------------
Oops. Ignore my comment on the previous patch, since it is incorrect. (It appears that ubi::Node's stuff *does* include malloced memory.) Though that makes me wonder if users of this might be interested in both? (For instance, if you are looking at how many objects you can allocate before filling up the nursery and triggering a minor GC, you don't want malloced memory included.)
Attachment #8632592 -
Flags: review?(sphink) → review+
Comment 6•9 years ago
|
||
Comment on attachment 8632593 [details] [diff] [review]
Part 2: Test the size property of entries in the tenure promotions log
Review of attachment 8632593 [details] [diff] [review]:
-----------------------------------------------------------------
Nice test, though I suppose it doesn't guarantee that all of those things will get nursery-allocated in the first place. Do you want it to?
Attachment #8632593 -
Flags: review?(sphink) → review+
Assignee | ||
Comment 7•9 years ago
|
||
I don't think the test needs to guarantee that (and not all of them do, probably). Just wanted a variety of objects to ensure that we can handle them all if/when they do appear in the logs.
Try push: https://treeherder.mozilla.org/#/jobs?repo=try&revision=ea832514f086
Comment 9•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/c2853fd10127
https://hg.mozilla.org/mozilla-central/rev/19817a9103a7
https://hg.mozilla.org/mozilla-central/rev/3999da0ba5c9
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
status-firefox42:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla42
You need to log in
before you can comment on or make changes to this bug.
Description
•