Title: [227627] trunk/Source/WebKit
- Revision
- 227627
- Author
- [email protected]
- Date
- 2018-01-25 13:30:23 -0800 (Thu, 25 Jan 2018)
Log Message
Add logging to facilitate binding of WebContent and Network processes to UI process
https://bugs.webkit.org/show_bug.cgi?id=182066
Reviewed by Brent Fulgham.
When examining sysdiagnose logs and tracing events from one process to
another, it would be helpful to know which WebKit processes were
related to each other. When Safari, Mail, Messages, etc. are all
running at the same time, it may otherwise be difficult to know if a
particular Network process, for example was associated with Safari or
some other application. Add some logging to the creation of WebContent
and Network processes to identify their "presenting process" (parent
application).
* NetworkProcess/NetworkProcess.cpp:
(WebKit::NetworkProcess::initializeNetworkProcess):
* Platform/Logging.h:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (227626 => 227627)
--- trunk/Source/WebKit/ChangeLog 2018-01-25 21:27:32 UTC (rev 227626)
+++ trunk/Source/WebKit/ChangeLog 2018-01-25 21:30:23 UTC (rev 227627)
@@ -1,3 +1,25 @@
+2018-01-25 Keith Rollin <[email protected]>
+
+ Add logging to facilitate binding of WebContent and Network processes to UI process
+ https://bugs.webkit.org/show_bug.cgi?id=182066
+
+ Reviewed by Brent Fulgham.
+
+ When examining sysdiagnose logs and tracing events from one process to
+ another, it would be helpful to know which WebKit processes were
+ related to each other. When Safari, Mail, Messages, etc. are all
+ running at the same time, it may otherwise be difficult to know if a
+ particular Network process, for example was associated with Safari or
+ some other application. Add some logging to the creation of WebContent
+ and Network processes to identify their "presenting process" (parent
+ application).
+
+ * NetworkProcess/NetworkProcess.cpp:
+ (WebKit::NetworkProcess::initializeNetworkProcess):
+ * Platform/Logging.h:
+ * WebProcess/WebProcess.cpp:
+ (WebKit::WebProcess::initializeWebProcess):
+
2018-01-25 Youenn Fablet <[email protected]>
DocumentLoader should interrupt ongoing load when getting a redirection from network that matches a service worker
Modified: trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp (227626 => 227627)
--- trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2018-01-25 21:27:32 UTC (rev 227626)
+++ trunk/Source/WebKit/NetworkProcess/NetworkProcess.cpp 2018-01-25 21:30:23 UTC (rev 227627)
@@ -259,6 +259,8 @@
for (auto& supplement : m_supplements.values())
supplement->initialize(parameters);
+
+ RELEASE_LOG(Process, "%p - NetworkProcess::initializeNetworkProcess: Presenting process = %d", this, WebCore::presentingApplicationPID());
}
void NetworkProcess::initializeConnection(IPC::Connection* connection)
Modified: trunk/Source/WebKit/Platform/Logging.h (227626 => 227627)
--- trunk/Source/WebKit/Platform/Logging.h 2018-01-25 21:27:32 UTC (rev 227626)
+++ trunk/Source/WebKit/Platform/Logging.h 2018-01-25 21:30:23 UTC (rev 227627)
@@ -58,6 +58,7 @@
M(PerformanceLogging) \
M(Plugins) \
M(Printing) \
+ M(Process) \
M(ProcessSuspension) \
M(RemoteLayerTree) \
M(Resize) \
Modified: trunk/Source/WebKit/WebProcess/WebProcess.cpp (227626 => 227627)
--- trunk/Source/WebKit/WebProcess/WebProcess.cpp 2018-01-25 21:27:32 UTC (rev 227626)
+++ trunk/Source/WebKit/WebProcess/WebProcess.cpp 2018-01-25 21:30:23 UTC (rev 227627)
@@ -425,6 +425,8 @@
#if HAVE(CFNETWORK_STORAGE_PARTITIONING) && !RELEASE_LOG_DISABLED
ResourceLoadObserver::shared().setShouldLogUserInteraction(parameters.shouldLogUserInteraction);
#endif
+
+ RELEASE_LOG(Process, "%p - WebProcess::initializeWebProcess: Presenting process = %d", this, WebCore::presentingApplicationPID());
}
void WebProcess::registerURLSchemeAsEmptyDocument(const String& urlScheme)
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes