WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
99186
Web Inspector: NMI remove hand made object builders with automatic builder
https://bugs.webkit.org/show_bug.cgi?id=99186
Summary
Web Inspector: NMI remove hand made object builders with automatic builder
Ilya Tikhonovsky
Reported
2012-10-12 09:36:42 PDT
Our ObjectType to size map handles a map between pointers to strings like "MemoryCache.Image" and the corresponding allocated size. The builders fetch the data and creates hierarchical structure. This solution is not scalable solution. I'd like to add another types and need to implement additional builders.
Attachments
Patch
(16.07 KB, patch)
2012-10-12 09:43 PDT
,
Ilya Tikhonovsky
no flags
Details
Formatted Diff
Diff
Patch
(16.11 KB, patch)
2012-10-13 09:19 PDT
,
Ilya Tikhonovsky
yurys
: review+
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Ilya Tikhonovsky
Comment 1
2012-10-12 09:43:25 PDT
Created
attachment 168439
[details]
Patch
Build Bot
Comment 2
2012-10-12 11:46:21 PDT
Comment on
attachment 168439
[details]
Patch
Attachment 168439
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14282043
New failing tests: inspector/profiler/memory-instrumentation-cached-images.html
WebKit Review Bot
Comment 3
2012-10-12 12:09:29 PDT
Comment on
attachment 168439
[details]
Patch
Attachment 168439
[details]
did not pass chromium-ews (chromium-xvfb): Output:
http://queues.webkit.org/results/14278051
New failing tests: inspector/profiler/memory-instrumentation-canvas.html inspector/profiler/memory-instrumentation-cached-images.html
Build Bot
Comment 4
2012-10-12 12:46:22 PDT
Comment on
attachment 168439
[details]
Patch
Attachment 168439
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/14262594
New failing tests: inspector/profiler/memory-instrumentation-cached-images.html
Ilya Tikhonovsky
Comment 5
2012-10-13 09:19:19 PDT
Created
attachment 168556
[details]
Patch
Yury Semikhatsky
Comment 6
2012-10-14 23:11:39 PDT
Comment on
attachment 168556
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=168556&action=review
> Source/WebCore/inspector/InspectorMemoryAgent.cpp:126 > + if (objectType.endsWith(".used", false))
Can we check if the parent block already exists and contains size value? Or better always sum up children sizes.
> Source/WebCore/inspector/MemoryInstrumentationImpl.cpp:43 > + // TypeToSizeMap uses const char* as the key.
You should probably note that we compare pointers not strings and use hash for pointer not string.
Ilya Tikhonovsky
Comment 7
2012-10-14 23:21:35 PDT
Committed
r131290
: <
http://trac.webkit.org/changeset/131290
>
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