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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla33

People

(Reporter: jonco, Assigned: jonco)

Details

Attachments

(3 files)

We can get some useful information by looking at object lifetimes broken down by whether they have a finalizer, and by their type.
Attachment #8450914 - Flags: review?(terrence)
Attachment #8450915 - Flags: review?(terrence)
Attachment #8450916 - Flags: review?(terrence)
Latest results are up here: http://people.mozilla.org/~jcoppeard/gcstats/
Attachment #8450914 - Flags: review?(terrence) → review+
Attachment #8450915 - Flags: review?(terrence) → review+
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+
Depends on: 1037516
No longer depends on: 1037516
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: