RESOLVED FIXED 153880
Web Inspector: Give nested inspectors their own process pool
https://bugs.webkit.org/show_bug.cgi?id=153880
Summary Web Inspector: Give nested inspectors their own process pool
Joseph Pecoraro
Reported 2016-02-04 11:45:17 PST
* SUMMARY Give nested inspectors their own process pool. When inspecting the inspector, in order for profiling information to be useful the inspector¹ and inspector² should be in separate processes (or at least not share the same VM). When sampling I was seeing JavaScript running in both inspectors in the sample, because they were sharing the same process and VM.
Attachments
[PATCH] Proposed Fix (6.22 KB, patch)
2016-02-04 11:50 PST, Joseph Pecoraro
timothy: review-
[PATCH] Proposed Fix (6.22 KB, patch)
2016-02-04 12:12 PST, Joseph Pecoraro
no flags
Radar WebKit Bug Importer
Comment 1 2016-02-04 11:46:29 PST
Joseph Pecoraro
Comment 2 2016-02-04 11:50:39 PST
Created attachment 270676 [details] [PATCH] Proposed Fix We could create a Vector for pools per level, but I think just 2 pools is fine for now. Needs a WK2 Owner nod.
Timothy Hatcher
Comment 3 2016-02-04 11:56:49 PST
Comment on attachment 270676 [details] [PATCH] Proposed Fix View in context: https://bugs.webkit.org/attachment.cgi?id=270676&action=review > Source/WebKit2/UIProcess/WebInspectorProxy.cpp:314 > + WebProcessPool* pool = inspectionLevel == 1 ? s_mainInspectorProcessPool : s_nestedInspectorProcessPool; I think this needs to be a reference or a ** to make the later assignment work right. As it stands, I suspect this makes a new pool each time and s_mainInspectorProcessPool / s_nestedInspectorProcessPool are always null.
Joseph Pecoraro
Comment 4 2016-02-04 12:12:22 PST
Created attachment 270683 [details] [PATCH] Proposed Fix
WebKit Commit Bot
Comment 5 2016-02-04 13:02:31 PST
Comment on attachment 270683 [details] [PATCH] Proposed Fix Clearing flags on attachment: 270683 Committed r196142: <http://trac.webkit.org/changeset/196142>
WebKit Commit Bot
Comment 6 2016-02-04 13:02:34 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.