Implement console.takeHeapSnapshot

NEW
Unassigned

Status

()

Firefox
Developer Tools: Memory
P3
normal
4 years ago
2 years ago

People

(Reporter: fitzgen, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

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]

Updated

3 years ago
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]
You need to log in before you can comment on or make changes to this bug.