Changeset 225508 in webkit


Ignore:
Timestamp:
Dec 4, 2017 5:11:52 PM (6 years ago)
Author:
Brent Fulgham
Message:

Don't force creation of process pool when enabling resource load statistics
https://bugs.webkit.org/show_bug.cgi?id=180374
<rdar://problem/35545639>

Reviewed by Alex Christensen.

Pass appropriate arguments to the 'processPool' accessor so that we only get the
set of existing process pools. We don't want to pay the cost of launching new
process pools just to set this flag. The flag will be properly set when the pools
are created as soon as a WebView is instantiated.

  • UIProcess/WebsiteData/WebsiteDataStore.cpp:

(WebKit::WebsiteDataStore::setResourceLoadStatisticsEnabled):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r225507 r225508  
     12017-12-04  Brent Fulgham  <bfulgham@apple.com>
     2
     3        Don't force creation of process pool when enabling resource load statistics
     4        https://bugs.webkit.org/show_bug.cgi?id=180374
     5        <rdar://problem/35545639>
     6
     7        Reviewed by Alex Christensen.
     8
     9        Pass appropriate arguments to the 'processPool' accessor so that we only get the
     10        set of existing process pools. We don't want to pay the cost of launching new
     11        process pools just to set this flag. The flag will be properly set when the pools
     12        are created as soon as a WebView is instantiated.
     13
     14        * UIProcess/WebsiteData/WebsiteDataStore.cpp:
     15        (WebKit::WebsiteDataStore::setResourceLoadStatisticsEnabled):
     16
    1172017-12-04  David Quesada  <david_quesada@apple.com>
    218
  • trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp

    r225490 r225508  
    13271327
    13281328    m_resourceLoadStatistics = nullptr;
    1329     for (auto& processPool : processPools())
     1329
     1330    auto existingProcessPools = processPools(std::numeric_limits<size_t>::max(), false);
     1331    for (auto& processPool : existingProcessPools)
    13301332        processPool->setResourceLoadStatisticsEnabled(false);
    13311333}
Note: See TracChangeset for help on using the changeset viewer.