WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Yury Semikhatsky
Comment 1
2013-03-12 02:56:03 PDT
Created
attachment 192687
[details]
Patch
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
Committed
r145540
: <
http://trac.webkit.org/changeset/145540
>
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