RESOLVED INVALID 78574
Web Inspector: Typed Arrays not sized correctly in heap snapshots
https://bugs.webkit.org/show_bug.cgi?id=78574
Summary Web Inspector: Typed Arrays not sized correctly in heap snapshots
Ben Vanik
Reported 2012-02-13 22:03:59 PST
While trying to find the discrepancies between Task Manager and the heap snapshot panel in the Chrome dev tools I noticed that typed arrays are not getting their size counted correctly. It looks like only the Javascript side of the arrays are counted, and not the native backing store. This means that if one has a 1MB Float32Array they'll only see it as ~32B in the heap profile. In applications making heavy use of typed arrays this makes the heap profiles largely useless for identifying memory hogging code. It's not enough of a workaround to use the count of typed arrays as an indicator of size as a large application will use thousands of arrays varying from 32B to several MB each.
Attachments
michaelbraithwaite
Comment 1 2012-06-19 02:13:38 PDT
michaelbraithwaite
Comment 2 2012-06-28 08:53:18 PDT
Note You need to log in before you can comment on or make changes to this bug.