Bug 101729

Summary: Web Inspector: NMI add instrumentation for WebAudo related stuff. It uses about 16Mb for shared data on pages with webaudio. As example Angry Birds app.
Product: WebKit Reporter: Ilya Tikhonovsky <loislo>
Component: Web Inspector (Deprecated)Assignee: Ilya Tikhonovsky <loislo>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, crogers, eric.carlson, feature-media-reviews, gustavo, haraken, keishi, levin+threading, loislo, pfeldman, philn, pmuellr, simon.fraser, vsevik, web-inspector-bugs, webkit-ews, webkit.review.bot, xan.lopez, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
for qt bot
none
with fix for mac and win bots.
none
with fix for mac, gtk and win bots.
none
with additional instrumentation for fft arrays. total ~36mb yurys: review+

Ilya Tikhonovsky
Reported 2012-11-09 01:52:32 PST
EOM
Attachments
Patch (30.38 KB, patch)
2012-11-09 05:02 PST, Ilya Tikhonovsky
no flags
for qt bot (30.74 KB, patch)
2012-11-09 05:17 PST, Ilya Tikhonovsky
no flags
with fix for mac and win bots. (30.42 KB, patch)
2012-11-09 06:04 PST, Ilya Tikhonovsky
no flags
with fix for mac, gtk and win bots. (29.38 KB, patch)
2012-11-10 04:14 PST, Ilya Tikhonovsky
no flags
with additional instrumentation for fft arrays. total ~36mb (31.49 KB, patch)
2012-11-11 23:33 PST, Ilya Tikhonovsky
yurys: review+
Ilya Tikhonovsky
Comment 1 2012-11-09 05:02:55 PST
EFL EWS Bot
Comment 2 2012-11-09 05:11:12 PST
Early Warning System Bot
Comment 3 2012-11-09 05:13:13 PST
Early Warning System Bot
Comment 4 2012-11-09 05:17:31 PST
Ilya Tikhonovsky
Comment 5 2012-11-09 05:17:46 PST
Created attachment 173271 [details] for qt bot
Build Bot
Comment 6 2012-11-09 05:54:09 PST
Comment on attachment 173271 [details] for qt bot Attachment 173271 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14778396
Yury Semikhatsky
Comment 7 2012-11-09 05:56:09 PST
Comment on attachment 173268 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=173268&action=review > Source/WebCore/dom/ActiveDOMObject.cpp:98 > + UNUSED_PARAM(info); Please remove this. > Source/WebCore/dom/ContextDestructionObserver.h:43 > + virtual void reportMemoryUsage(MemoryObjectInfo*) const; We shouldn't add reportMemoryUsage to abstract interfaces as we don't control their implementations. > Source/WebCore/dom/WebCoreMemoryInstrumentation.h:48 > + static MemoryObjectType Audio; Should go into PlatformMemoryInstrumentation.h
Yury Semikhatsky
Comment 8 2012-11-09 05:58:46 PST
Except for the comments above the instrumentation looks good. But I'd like someone familiar with web audio code to look at AudioContext::reportMemoryUsage and AutoLocker call in it.
Ilya Tikhonovsky
Comment 9 2012-11-09 06:04:19 PST
Created attachment 173287 [details] with fix for mac and win bots.
Build Bot
Comment 10 2012-11-09 07:07:53 PST
Comment on attachment 173287 [details] with fix for mac and win bots. Attachment 173287 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/14785201
Build Bot
Comment 11 2012-11-09 07:56:18 PST
Comment on attachment 173287 [details] with fix for mac and win bots. Attachment 173287 [details] did not pass win-ews (win): Output: http://queues.webkit.org/results/14771712
Ilya Tikhonovsky
Comment 12 2012-11-10 04:14:43 PST
Created attachment 173442 [details] with fix for mac, gtk and win bots.
Ilya Tikhonovsky
Comment 13 2012-11-11 23:33:16 PST
Created attachment 173573 [details] with additional instrumentation for fft arrays. total ~36mb
Ilya Tikhonovsky
Comment 14 2012-11-11 23:42:54 PST
(In reply to comment #7) > (From update of attachment 173268 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=173268&action=review > > > Source/WebCore/dom/ActiveDOMObject.cpp:98 > > + UNUSED_PARAM(info); > > Please remove this. done > > > Source/WebCore/dom/ContextDestructionObserver.h:43 > > + virtual void reportMemoryUsage(MemoryObjectInfo*) const; > > We shouldn't add reportMemoryUsage to abstract interfaces as we don't control their implementations. done > > > Source/WebCore/dom/WebCoreMemoryInstrumentation.h:48 > > + static MemoryObjectType Audio; > > Should go into PlatformMemoryInstrumentation.h done.
Ilya Tikhonovsky
Comment 15 2012-11-14 04:13:46 PST
Kentaro Hara
Comment 16 2012-11-14 05:05:56 PST
It looks like this patch broke inspector-protocol/nmi-webaudio.html. I will mark it as FAIL. Please fix it soon.
Note You need to log in before you can comment on or make changes to this bug.