Closed Bug 1597999 Opened 5 years ago Closed 5 years ago

Allow retrieving NodeId for a given JS Object

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla72
Tracking Status
firefox72 --- fixed

People

(Reporter: ochameau, Assigned: ochameau)

References

Details

Attachments

(1 file)

This allows identifying a particular object when using the HeapSnapshot API.
HeapSnapshot.computeDominatorTree() returns a tree of objects, but there is no way to identify a given JS object in it.
Getting the node id of a given JS object helps you browse this tree from a given object you know is being leaked. Or just check if it is leaked at all.

This helps retrieving the NodeId for any JS Object you pass in.
This allows identifying a particular object when using HeapSnapshot API.
HeapSnapshot.computeDominatorTree() returns a tree of object,
but there is no way to identify a given JS object in it.
Getting the node id of a given JS object helps you browse this tree
from a given object you know is leaking.

Priority: -- → P3
Pushed by apoirot@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/82b716f10a12
Implements ChromeUtils.getObjectNodeId. r=jimb
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla72
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: