NEW 112077
add memory sampler to Network Process
https://bugs.webkit.org/show_bug.cgi?id=112077
Summary add memory sampler to Network Process
Stephanie Lewis
Reported 2013-03-11 16:10:17 PDT
Created attachment 192585 [details] patch Add memory sampler to the network process and figure out why the sampler is dumping two files per web process.
Attachments
patch (6.62 KB, patch)
2013-03-11 16:10 PDT, Stephanie Lewis
slewis: review-
webkit-ews: commit-queue-
patch 2 (6.85 KB, patch)
2013-03-11 16:50 PDT, Stephanie Lewis
ap: review-
WebKit Review Bot
Comment 1 2013-03-11 16:17:10 PDT
Attachment 192585 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit2/NetworkProcess/NetworkProcess.cpp', u'Source/WebKit2/NetworkProcess/NetworkProcess.h', u'Source/WebKit2/NetworkProcess/NetworkProcess.messages.in', u'Source/WebKit2/UIProcess/WebContext.cpp']" exit_code: 1 Source/WebKit2/ChangeLog:1: ChangeLog entry has no bug number [changelog/bugnumber] [5] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Early Warning System Bot
Comment 2 2013-03-11 16:21:47 PDT
Stephanie Lewis
Comment 3 2013-03-11 16:50:24 PDT
Brady Eidson
Comment 4 2013-03-11 17:43:34 PDT
CC'ing Alexey as I don't fully understand the ramifications of adding a sandbox extension, and doing so without later revoking it.
Stephanie Lewis
Comment 5 2013-03-12 15:11:39 PDT
The extension is revoked when the memory sampler is stopped. Often not until the process exits however, void WebMemorySampler::stop() { .... if (m_sampleLogSandboxExtension) { m_sampleLogSandboxExtension->revoke(); m_sampleLogSandboxExtension = nullptr; } }
Alexey Proskuryakov
Comment 6 2013-03-12 16:16:45 PDT
Comment on attachment 192594 [details] patch 2 View in context: https://bugs.webkit.org/attachment.cgi?id=192594&action=review > Source/WebKit2/UIProcess/WebContext.cpp:996 > + // WebProcess is called in ProcessDidFinishLoading when we know the PID. Please reword this to explain what's done with WebProcess there. Also, this would me more visible next to NetworkProcess comment above. > Source/WebKit2/UIProcess/WebContext.cpp:999 > void WebContext::stopMemorySampler() This needs to be updated too.
Note You need to log in before you can comment on or make changes to this bug.