WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
13359
Feature request: Tool for tracking down javascript object allocations
https://bugs.webkit.org/show_bug.cgi?id=13359
Summary
Feature request: Tool for tracking down javascript object allocations
Jonathan del Strother
Reported
2007-04-16 03:41:41 PDT
I'm working on a fairly complex javascript application at the moment, which is gaining 600 objects on each xhr request. I'm really struggling to find out where those objects are coming from. Hopefully I'll have fixed this by the time this feature request is fulfilled, but for those that might struggle with this in future : It would be incredibly helpful if there was a debugging tool that would show a report of javascript objects created between two time points, and show what objects reference them. Something along the lines of ObjectAlloc would be perfect. I'm not aware of such a tool on any browser - it would be a great asset to js developers.
Attachments
Add attachment
proposed patch, testcase, etc.
Joseph Pecoraro
Comment 1
2016-04-28 17:07:26 PDT
Heap Snapshots are now available in the JavaScript Allocations Timeline in Web Inspector. It allows you to take snapshots which record some info about all JavaScript objects, and then comparisons let you investigate objects created between two points in time. You can also view outward references and the shortest path from a GC Root to the object. Try it out in WebKit Nightlies or the Safari Technology Preview: <
https://webkit.org/downloads/
> Please file enhancement requests or report any issues you find!
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug