Title: [208529] trunk/Source/WebKit2
- Revision
- 208529
- Author
- clo...@igalia.com
- Date
- 2016-11-10 00:46:13 -0800 (Thu, 10 Nov 2016)
Log Message
[GTK] Allow to use WebMemorySampler feature.
https://bugs.webkit.org/show_bug.cgi?id=164517
Reviewed by Carlos Garcia Campos.
Enable the WebMemorySampler with the environment variable WEBKIT_SAMPLE_MEMORY.
When enabled, it will dump the stats to /tmp each second.
* UIProcess/API/gtk/WebKitWebContext.cpp:
(webkitWebContextConstructed):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (208528 => 208529)
--- trunk/Source/WebKit2/ChangeLog 2016-11-10 08:01:10 UTC (rev 208528)
+++ trunk/Source/WebKit2/ChangeLog 2016-11-10 08:46:13 UTC (rev 208529)
@@ -1,3 +1,17 @@
+2016-11-10 Carlos Alberto Lopez Perez <clo...@igalia.com>
+
+ [GTK] Allow to use WebMemorySampler feature.
+ https://bugs.webkit.org/show_bug.cgi?id=164517
+
+ Reviewed by Carlos Garcia Campos.
+
+ Enable the WebMemorySampler with the environment variable WEBKIT_SAMPLE_MEMORY.
+
+ When enabled, it will dump the stats to /tmp each second.
+
+ * UIProcess/API/gtk/WebKitWebContext.cpp:
+ (webkitWebContextConstructed):
+
2016-11-10 Philippe Normand <pnorm...@igalia.com>
[WK2][GTK][GStreamer] Build fails when -plugins-base and -core headers are not installed in the same directory
Modified: trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp (208528 => 208529)
--- trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp 2016-11-10 08:01:10 UTC (rev 208528)
+++ trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp 2016-11-10 08:46:13 UTC (rev 208529)
@@ -280,6 +280,11 @@
priv->tlsErrorsPolicy = WEBKIT_TLS_ERRORS_POLICY_FAIL;
priv->processPool->setIgnoreTLSErrors(false);
+#if ENABLE(MEMORY_SAMPLER)
+ if (getenv("WEBKIT_SAMPLE_MEMORY"))
+ priv->processPool->startMemorySampler(0);
+#endif
+
attachInjectedBundleClientToContext(webContext);
attachDownloadClientToContext(webContext);
attachRequestManagerClientToContext(webContext);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes