Closed
Bug 1441430
Opened 7 years ago
Closed 7 years ago
Provide more detail about atoms memory usage
Categories
(Core :: XPCOM, enhancement)
Core
XPCOM
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: n.nethercote, Assigned: n.nethercote)
References
(Blocks 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
The old output had a single value "atoms-table". The new output looks like
this:
> 681,264 B (00.37%) -- atoms
> +--332,432 B (00.18%) -- dynamic-atoms
> +--262,176 B (00.14%) -- table
> +---86,656 B (00.05%) -- static-atoms
MozReview-Commit-ID: 924vUmxHAlh
Assignee | ||
Comment 1•7 years ago
|
||
Attachment #8954271 -
Flags: review?(nfroyd)
Comment 2•7 years ago
|
||
Comment on attachment 8954271 [details] [diff] [review]
Provide more detail about atoms memory usage
Review of attachment 8954271 [details] [diff] [review]:
-----------------------------------------------------------------
I trust that you can update this appropriately over bholley's sharded atom table patches.
::: xpcom/ds/nsAtomTable.h
@@ +28,5 @@
> +};
> +} // namespace mozilla
> +
> +void NS_AddSizeOfAtoms(mozilla::MallocSizeOf aMallocSizeOf,
> + mozilla::AtomsSizes& aSizes);
With discussions previously about returning values as values, rather than via outparams, should this just return mozilla::AtomsSizes? Makes for slightly nicer code, and the actual assembly should be just as efficient.
Attachment #8954271 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 3•7 years ago
|
||
> With discussions previously about returning values as values, rather than
> via outparams, should this just return mozilla::AtomsSizes? Makes for
> slightly nicer code, and the actual assembly should be just as efficient.
The standard approach for memory reporting functions is to use the return value when measuring a single value, and a by-ref struct for multiple values. I'd prefer to stick to that... returning structs still feels weird.
Assignee | ||
Comment 4•7 years ago
|
||
> The standard approach for memory reporting functions is to use the return
> value when measuring a single value, and a by-ref struct for multiple
> values. I'd prefer to stick to that... returning structs still feels weird.
Also, after rebasing over bholley's patch, the measurement gets split up across multiple functions in a way that returning a struct would be awkward.
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8954271 -
Attachment is obsolete: true
Assignee | ||
Comment 6•7 years ago
|
||
The new version has more detail.
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8954581 [details]
Bug 1441430 - Provide more detail about atoms memory usage.
https://reviewboard.mozilla.org/r/223672/#review229738
Attachment #8954581 -
Flags: review?(nfroyd) → review+
Assignee | ||
Comment 8•7 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/2e2934676a8b1132723db6be553646d568b1dffc
Bug 1441430 - Provide more detail about atoms memory usage. r=froydnj
Comment 9•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
You need to log in
before you can comment on or make changes to this bug.
Description
•