Closed
Bug 1034566
Opened 10 years ago
Closed 10 years ago
Extend GC tracing with information about finalizers and types
Categories
(Core :: JavaScript: GC, defect)
Core
JavaScript: GC
Tracking
()
RESOLVED
FIXED
mozilla33
People
(Reporter: jonco, Assigned: jonco)
Details
Attachments
(3 files)
12.33 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
8.53 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
19.34 KB,
patch
|
terrence
:
review+
|
Details | Diff | Splinter Review |
We can get some useful information by looking at object lifetimes broken down by whether they have a finalizer, and by their type.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8450914 -
Flags: review?(terrence)
Assignee | ||
Comment 2•10 years ago
|
||
Attachment #8450915 -
Flags: review?(terrence)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8450916 -
Flags: review?(terrence)
Assignee | ||
Comment 4•10 years ago
|
||
Latest results are up here: http://people.mozilla.org/~jcoppeard/gcstats/
Updated•10 years ago
|
Attachment #8450914 -
Flags: review?(terrence) → review+
Updated•10 years ago
|
Attachment #8450915 -
Flags: review?(terrence) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8450916 [details] [diff] [review] 3 - Trace object types Review of attachment 8450916 [details] [diff] [review]: ----------------------------------------------------------------- ::: js/src/devtools/gctrace/gcstats.cpp @@ +451,5 @@ > + if (objectCountByType.at(i) > minObjectCount) > + topTypes.push_back(i); > + } > + std::sort(topTypes.begin(), topTypes.end(), > + [] (TypeId a, TypeId b) { return objectCountByType.at(a) > objectCountByType.at(b); }); Yay, lambdas!
Attachment #8450916 -
Flags: review?(terrence) → review+
Assignee | ||
Comment 6•10 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/ced38bdb659b https://hg.mozilla.org/integration/mozilla-inbound/rev/e57e4378a1c1 https://hg.mozilla.org/integration/mozilla-inbound/rev/047082ad1464
https://hg.mozilla.org/mozilla-central/rev/ced38bdb659b https://hg.mozilla.org/mozilla-central/rev/e57e4378a1c1 https://hg.mozilla.org/mozilla-central/rev/047082ad1464
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla33
You need to log in
before you can comment on or make changes to this bug.
Description
•