Open Bug 960662 Opened 10 years ago Updated 2 years ago

Implement console.takeHeapSnapshot

Categories

(DevTools :: Memory, defect, P3)

x86
macOS
defect

Tracking

(Not tracked)

People

(Reporter: fitzgen, Unassigned)

References

Details

We can use the exposed to JS function that creates a dominator tree that includes the given obj and we could report its retained memory size as a console message.

The benefit of implementing this early, before the whole tool is ready, is that we can get early users to shake out bugs in our dominator tree and ubi::Node implementations and land tests so no one else breaks our stuff, etc.
Depends on: 961329
Whiteboard: [status:planned
Whiteboard: [status:planned → [status:planned]
Whiteboard: [status:planned] → [status:inflight]
Has STR: --- → irrelevant
I don't think we want to save a heap snapshot, compute a dominator tree, and return the retained size of one object all as a console method.

Migrating this bug to be a method for taking a heap snapshot (if the devtools are open) via the console.
Priority: -- → P3
Summary: Implement console.retainedSize(obj) → Implement console.takeHeapSnapshot
Whiteboard: [status:inflight]
Product: Firefox → DevTools
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.