Changeset 208529 in webkit


Ignore:
Timestamp:
Nov 10, 2016 12:46:13 AM (7 years ago)
Author:
clopez@igalia.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r208528 r208529  
     12016-11-10  Carlos Alberto Lopez Perez  <clopez@igalia.com>
     2
     3        [GTK] Allow to use WebMemorySampler feature.
     4        https://bugs.webkit.org/show_bug.cgi?id=164517
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        Enable the WebMemorySampler with the environment variable WEBKIT_SAMPLE_MEMORY.
     9
     10        When enabled, it will dump the stats to /tmp each second.
     11
     12        * UIProcess/API/gtk/WebKitWebContext.cpp:
     13        (webkitWebContextConstructed):
     14
    1152016-11-10  Philippe Normand  <pnormand@igalia.com>
    216
  • trunk/Source/WebKit2/UIProcess/API/gtk/WebKitWebContext.cpp

    r208300 r208529  
    281281    priv->processPool->setIgnoreTLSErrors(false);
    282282
     283#if ENABLE(MEMORY_SAMPLER)
     284    if (getenv("WEBKIT_SAMPLE_MEMORY"))
     285        priv->processPool->startMemorySampler(0);
     286#endif
     287
    283288    attachInjectedBundleClientToContext(webContext);
    284289    attachDownloadClientToContext(webContext);
Note: See TracChangeset for help on using the changeset viewer.