RESOLVED FIXED 112123
Web Inspector: add html canvas memory details to the native memory overview
https://bugs.webkit.org/show_bug.cgi?id=112123
Summary Web Inspector: add html canvas memory details to the native memory overview
Yury Semikhatsky
Reported 2013-03-12 02:54:43 PDT
In addition to cached images we can show memory occupied by HTMLCanvasElements under Image category.
Attachments
Patch (2.85 KB, patch)
2013-03-12 02:56 PDT, Yury Semikhatsky
apavlov: review+
Yury Semikhatsky
Comment 1 2013-03-12 02:56:03 PDT
Alexander Pavlov (apavlov)
Comment 2 2013-03-12 04:20:36 PDT
Comment on attachment 192687 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=192687&action=review > Source/WebCore/inspector/front-end/NativeHeapSnapshot.js:82 > + var canvases = aggregatesByClassName["WebCore::HTMLCanvasElement"]; Please add a blank line above to separate the two types of "images". > Source/WebCore/inspector/front-end/NativeHeapSnapshot.js:85 > + return "HTMLCanvasElement"; node.name() above returns something akin to "IMG", which is an HTML name of the tag, as opposed to "HTMLCanvasElement", which is a DOM type name. Inconsistency ensues.
Yury Semikhatsky
Comment 3 2013-03-12 07:35:27 PDT
(In reply to comment #2) > (From update of attachment 192687 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=192687&action=review > > > Source/WebCore/inspector/front-end/NativeHeapSnapshot.js:82 > > + var canvases = aggregatesByClassName["WebCore::HTMLCanvasElement"]; > > Please add a blank line above to separate the two types of "images". > Done. > > Source/WebCore/inspector/front-end/NativeHeapSnapshot.js:85 > > + return "HTMLCanvasElement"; > > node.name() above returns something akin to "IMG", which is an HTML name of the tag, as opposed to "HTMLCanvasElement", which is a DOM type name. Inconsistency ensues. No, node.name() returns URL of the cached image. We don't have user-friendly name yet so return generic name.
Yury Semikhatsky
Comment 4 2013-03-12 07:37:47 PDT
Note You need to log in before you can comment on or make changes to this bug.