Bug 105278

Summary: Web Inspector: add async API for passing renderer process memory stats
Product: WebKit Reporter: Alexei Filippov <alph>
Component: Web Inspector (Deprecated)Assignee: Alexei Filippov <alph>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, apavlov, dglazkov, fishd, jamesr, keishi, loislo, pfeldman, pmuellr, tkent+wkapi, vsevik, web-inspector-bugs, webkit-ews, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch none

Alexei Filippov
Reported 2012-12-18 04:42:12 PST
On some platforms (e.g. Linux) it may take some time to collect total process memory information as it involves an IPC out of a sandboxed renderer process. So add an async way to collect the statistics.
Attachments
Patch (7.97 KB, patch)
2012-12-18 04:51 PST, Alexei Filippov
no flags
Patch (7.88 KB, patch)
2012-12-19 10:08 PST, Alexei Filippov
no flags
Patch (7.93 KB, patch)
2012-12-20 05:10 PST, Alexei Filippov
no flags
Patch (7.99 KB, patch)
2012-12-24 06:48 PST, Alexei Filippov
no flags
Alexei Filippov
Comment 1 2012-12-18 04:51:12 PST
WebKit Review Bot
Comment 2 2012-12-18 04:54:01 PST
Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.
Darin Fisher (:fishd, Google)
Comment 3 2012-12-18 13:16:34 PST
Comment on attachment 179923 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=179923&action=review > Source/Platform/chromium/public/Platform.h:78 > +class ProcessMemorySizesCallback { nit: each top-level class / struct / enum should have its own header file.
Alexei Filippov
Comment 4 2012-12-19 10:08:34 PST
Alexei Filippov
Comment 5 2012-12-19 10:10:38 PST
Comment on attachment 179923 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=179923&action=review >> Source/Platform/chromium/public/Platform.h:78 >> +class ProcessMemorySizesCallback { > > nit: each top-level class / struct / enum should have its own header file. Thanks! Moved it inside Platform. Don't think it makes sense to have a separate file here.
Early Warning System Bot
Comment 6 2012-12-19 13:59:23 PST
Early Warning System Bot
Comment 7 2012-12-19 14:01:21 PST
Build Bot
Comment 8 2012-12-19 14:26:26 PST
Comment on attachment 180192 [details] Patch Attachment 180192 [details] did not pass mac-ews (mac): Output: http://queues.webkit.org/results/15412752 New failing tests: fast/frames/sandboxed-iframe-attribute-parsing.html
Alexei Filippov
Comment 9 2012-12-20 05:10:41 PST
Yury Semikhatsky
Comment 10 2012-12-24 04:13:10 PST
Comment on attachment 180325 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180325&action=review > Source/Platform/chromium/public/Platform.h:223 > + // memory currently allocated to this process that cannot be shared. You should describe whether the ownership of the callback is passed to the callee.
Alexei Filippov
Comment 11 2012-12-24 06:48:24 PST
Alexei Filippov
Comment 12 2012-12-24 06:49:03 PST
Comment on attachment 180325 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=180325&action=review >> Source/Platform/chromium/public/Platform.h:223 >> + // memory currently allocated to this process that cannot be shared. > > You should describe whether the ownership of the callback is passed to the callee. done.
WebKit Review Bot
Comment 13 2012-12-24 21:24:31 PST
Comment on attachment 180668 [details] Patch Clearing flags on attachment: 180668 Committed r138450: <http://trac.webkit.org/changeset/138450>
WebKit Review Bot
Comment 14 2012-12-24 21:24:36 PST
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.