<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[212768] trunk/Source/WebKit</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/212768">212768</a></dd>
<dt>Author</dt> <dd>akling@apple.com</dd>
<dt>Date</dt> <dd>2017-02-21 15:07:51 -0800 (Tue, 21 Feb 2017)</dd>
</dl>

<h3>Log Message</h3>
<pre>[iOS] Remove old WebKit1 MemoryMeasure helper.
&lt;https://webkit.org/b/168675&gt;

Reviewed by Sam Weinig.

Source/WebKit:

* WebKit.xcodeproj/project.pbxproj:

Source/WebKit/ios:

Remove the MemoryMeasure logging helper from the WebKit1 days. It was using an old way
of measuring memory, and we were only using it in a single place anyway.

* Misc/MemoryMeasure.h: Removed.
* Misc/MemoryMeasure.mm: Removed.
* WebKit.iOS.exp:

Source/WebKit/mac:

* Configurations/WebKitLegacy.xcconfig:
* Misc/WebCache.mm:
(+[WebCache emptyInMemoryResources]):
* WebView/WebView.mm:</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitChangeLog">trunk/Source/WebKit/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitWebKitxcodeprojprojectpbxproj">trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj</a></li>
<li><a href="#trunkSourceWebKitiosChangeLog">trunk/Source/WebKit/ios/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitiosWebKitiOSexp">trunk/Source/WebKit/ios/WebKit.iOS.exp</a></li>
<li><a href="#trunkSourceWebKitmacChangeLog">trunk/Source/WebKit/mac/ChangeLog</a></li>
<li><a href="#trunkSourceWebKitmacConfigurationsWebKitLegacyxcconfig">trunk/Source/WebKit/mac/Configurations/WebKitLegacy.xcconfig</a></li>
<li><a href="#trunkSourceWebKitmacMiscWebCachemm">trunk/Source/WebKit/mac/Misc/WebCache.mm</a></li>
<li><a href="#trunkSourceWebKitmacWebViewWebViewmm">trunk/Source/WebKit/mac/WebView/WebView.mm</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkSourceWebKitiosMiscMemoryMeasureh">trunk/Source/WebKit/ios/Misc/MemoryMeasure.h</a></li>
<li><a href="#trunkSourceWebKitiosMiscMemoryMeasuremm">trunk/Source/WebKit/ios/Misc/MemoryMeasure.mm</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkSourceWebKitChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ChangeLog (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ChangeLog        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/ChangeLog        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -1,3 +1,12 @@
</span><ins>+2017-02-21  Andreas Kling  &lt;akling@apple.com&gt;
+
+        [iOS] Remove old WebKit1 MemoryMeasure helper.
+        &lt;https://webkit.org/b/168675&gt;
+
+        Reviewed by Sam Weinig.
+
+        * WebKit.xcodeproj/project.pbxproj:
+
</ins><span class="cx"> 2017-02-21  JF Bastien  &lt;jfbastien@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Fix cmake build
</span></span></pre></div>
<a id="trunkSourceWebKitWebKitxcodeprojprojectpbxproj"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -693,8 +693,6 @@
</span><span class="cx">                 A10C1D1D18202F9C0036883A /* WebDefaultResourceLoadDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D1518202F9C0036883A /* WebDefaultResourceLoadDelegate.m */; };
</span><span class="cx">                 A10C1D1E18202F9C0036883A /* WebDefaultUIKitDelegate.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D1618202F9C0036883A /* WebDefaultUIKitDelegate.h */; };
</span><span class="cx">                 A10C1D1F18202F9C0036883A /* WebDefaultUIKitDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D1718202F9C0036883A /* WebDefaultUIKitDelegate.m */; };
</span><del>-                A10C1D3218202FC50036883A /* MemoryMeasure.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D2318202FC50036883A /* MemoryMeasure.h */; settings = {ATTRIBUTES = (Private, ); }; };
-                A10C1D3318202FC50036883A /* MemoryMeasure.mm in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D2418202FC50036883A /* MemoryMeasure.mm */; };
</del><span class="cx">                 A10C1D3418202FC50036883A /* WebGeolocationCoreLocationProvider.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D2518202FC50036883A /* WebGeolocationCoreLocationProvider.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="cx">                 A10C1D3518202FC50036883A /* WebGeolocationCoreLocationProvider.mm in Sources */ = {isa = PBXBuildFile; fileRef = A10C1D2618202FC50036883A /* WebGeolocationCoreLocationProvider.mm */; };
</span><span class="cx">                 A10C1D3618202FC50036883A /* WebGeolocationProviderIOS.h in Headers */ = {isa = PBXBuildFile; fileRef = A10C1D2718202FC50036883A /* WebGeolocationProviderIOS.h */; settings = {ATTRIBUTES = (Private, ); }; };
</span><span class="lines">@@ -1437,8 +1435,6 @@
</span><span class="cx">                 A10C1D1518202F9C0036883A /* WebDefaultResourceLoadDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WebDefaultResourceLoadDelegate.m; path = ios/DefaultDelegates/WebDefaultResourceLoadDelegate.m; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D1618202F9C0036883A /* WebDefaultUIKitDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebDefaultUIKitDelegate.h; path = ios/DefaultDelegates/WebDefaultUIKitDelegate.h; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D1718202F9C0036883A /* WebDefaultUIKitDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = WebDefaultUIKitDelegate.m; path = ios/DefaultDelegates/WebDefaultUIKitDelegate.m; sourceTree = SOURCE_ROOT; };
</span><del>-                A10C1D2318202FC50036883A /* MemoryMeasure.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = MemoryMeasure.h; path = ios/Misc/MemoryMeasure.h; sourceTree = SOURCE_ROOT; };
-                A10C1D2418202FC50036883A /* MemoryMeasure.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = MemoryMeasure.mm; path = ios/Misc/MemoryMeasure.mm; sourceTree = SOURCE_ROOT; };
</del><span class="cx">                 A10C1D2518202FC50036883A /* WebGeolocationCoreLocationProvider.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebGeolocationCoreLocationProvider.h; path = ios/Misc/WebGeolocationCoreLocationProvider.h; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D2618202FC50036883A /* WebGeolocationCoreLocationProvider.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; name = WebGeolocationCoreLocationProvider.mm; path = ios/Misc/WebGeolocationCoreLocationProvider.mm; sourceTree = SOURCE_ROOT; };
</span><span class="cx">                 A10C1D2718202FC50036883A /* WebGeolocationProviderIOS.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WebGeolocationProviderIOS.h; path = ios/Misc/WebGeolocationProviderIOS.h; sourceTree = SOURCE_ROOT; };
</span><span class="lines">@@ -2121,8 +2117,6 @@
</span><span class="cx">                 A10C1D2018202FAF0036883A /* ios */ = {
</span><span class="cx">                         isa = PBXGroup;
</span><span class="cx">                         children = (
</span><del>-                                A10C1D2318202FC50036883A /* MemoryMeasure.h */,
-                                A10C1D2418202FC50036883A /* MemoryMeasure.mm */,
</del><span class="cx">                                 A10C1D2518202FC50036883A /* WebGeolocationCoreLocationProvider.h */,
</span><span class="cx">                                 A10C1D2618202FC50036883A /* WebGeolocationCoreLocationProvider.mm */,
</span><span class="cx">                                 A10C1D2718202FC50036883A /* WebGeolocationProviderIOS.h */,
</span><span class="lines">@@ -2942,7 +2936,6 @@
</span><span class="cx">                                 939810680824BF01008DF038 /* HIViewAdapter.h in Headers */,
</span><span class="cx">                                 939810690824BF01008DF038 /* HIWebView.h in Headers */,
</span><span class="cx">                                 1A8DED500EE88B8A00F25022 /* HostedNetscapePluginStream.h in Headers */,
</span><del>-                                A10C1D3218202FC50036883A /* MemoryMeasure.h in Headers */,
</del><span class="cx">                                 1AAF5CEA0EDDE1FE008D883D /* NetscapePluginHostManager.h in Headers */,
</span><span class="cx">                                 1AAF5CEC0EDDE1FE008D883D /* NetscapePluginHostProxy.h in Headers */,
</span><span class="cx">                                 1AAF5CEE0EDDE1FE008D883D /* NetscapePluginInstanceProxy.h in Headers */,
</span><span class="lines">@@ -3530,7 +3523,6 @@
</span><span class="cx">                                 939811000824BF01008DF038 /* HIViewAdapter.m in Sources */,
</span><span class="cx">                                 939811020824BF01008DF038 /* HIWebView.mm in Sources */,
</span><span class="cx">                                 1A8DED510EE88B8A00F25022 /* HostedNetscapePluginStream.mm in Sources */,
</span><del>-                                A10C1D3318202FC50036883A /* MemoryMeasure.mm in Sources */,
</del><span class="cx">                                 1AAF5CEB0EDDE1FE008D883D /* NetscapePluginHostManager.mm in Sources */,
</span><span class="cx">                                 1AAF5CED0EDDE1FE008D883D /* NetscapePluginHostProxy.mm in Sources */,
</span><span class="cx">                                 1AAF5CEF0EDDE1FE008D883D /* NetscapePluginInstanceProxy.mm in Sources */,
</span></span></pre></div>
<a id="trunkSourceWebKitiosChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/ChangeLog (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/ChangeLog        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/ios/ChangeLog        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -1,5 +1,19 @@
</span><span class="cx"> 2017-02-21  Andreas Kling  &lt;akling@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        [iOS] Remove old WebKit1 MemoryMeasure helper.
+        &lt;https://webkit.org/b/168675&gt;
+
+        Reviewed by Sam Weinig.
+
+        Remove the MemoryMeasure logging helper from the WebKit1 days. It was using an old way
+        of measuring memory, and we were only using it in a single place anyway.
+
+        * Misc/MemoryMeasure.h: Removed.
+        * Misc/MemoryMeasure.mm: Removed.
+        * WebKit.iOS.exp:
+
+2017-02-21  Andreas Kling  &lt;akling@apple.com&gt;
+
</ins><span class="cx">         [iOS] WebKit1 should use shared memory pressure handler code.
</span><span class="cx">         &lt;https://webkit.org/b/168653&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitiosMiscMemoryMeasureh"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/ios/Misc/MemoryMeasure.h (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/Misc/MemoryMeasure.h        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/ios/Misc/MemoryMeasure.h        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -1,69 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef MemoryMeasure_h
-#define MemoryMeasure_h
-
-namespace WebKit {
-
-/*!
- * A simple class that measures the difference in the resident memory of the
- * process between its contruction and destruction. It uses the mach API -
- * task_info - to figure this out.
- */
-class MemoryMeasure {
-public:
-    MemoryMeasure()
-        : m_logString(&quot;&quot;)
-        , m_initialMemory(taskMemory())
-    {
-    }
-
-    MemoryMeasure(const char *log)
-        : m_logString(log)
-        , m_initialMemory(taskMemory())
-    {
-    }
-
-    ~MemoryMeasure();
-
-    static void enableLogging(bool enabled);
-    static bool isLoggingEnabled();
-
-private:
-    const char *m_logString;
-    long m_initialMemory;
-    static bool m_isLoggingEnabled;
-
-    /*!
-     * @return The resident memory (in bytes) consumed by the process. It uses
-     *         task_info() to get this information. If there is an error, it
-     *         returns -1.
-     */
-    long taskMemory();
-};
-
-}
-#endif
</del></span></pre></div>
<a id="trunkSourceWebKitiosMiscMemoryMeasuremm"></a>
<div class="delfile"><h4>Deleted: trunk/Source/WebKit/ios/Misc/MemoryMeasure.mm (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/Misc/MemoryMeasure.mm        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/ios/Misc/MemoryMeasure.mm        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -1,85 +0,0 @@
</span><del>-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
- * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
- * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
- * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
- * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
- * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
- * THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#if PLATFORM(IOS)
-
-#include &quot;MemoryMeasure.h&quot;
-
-#include &lt;stdio.h&gt;
-#include &lt;mach/mach.h&gt;
-
-static const int measureMemoryFailed = -1;
-
-namespace WebKit {
-
-bool MemoryMeasure::m_isLoggingEnabled;
-
-void MemoryMeasure::enableLogging(bool enabled)
-{
-    m_isLoggingEnabled = enabled;
-}
-
-bool MemoryMeasure::isLoggingEnabled()
-{
-    return m_isLoggingEnabled;
-}
-
-long MemoryMeasure::taskMemory()
-{
-    if (!MemoryMeasure::isLoggingEnabled())
-        return 0;
-
-    task_vm_info_data_t vmInfo;
-    mach_msg_type_number_t count = TASK_VM_INFO_COUNT;
-    kern_return_t err = task_info(mach_task_self(), TASK_VM_INFO, (task_info_t) &amp;vmInfo, &amp;count);
-    if (err != KERN_SUCCESS)
-        return measureMemoryFailed;
-
-    return (long) vmInfo.internal;
-}
-
-MemoryMeasure::~MemoryMeasure()
-{
-    if (!MemoryMeasure::isLoggingEnabled())
-        return;
-
-    long currentMemory = taskMemory();
-    if (currentMemory == measureMemoryFailed || m_initialMemory == measureMemoryFailed) {
-        NSLog(@&quot;%s (Unable to get dirty memory information for process)\n&quot;, m_logString);
-        return;
-    }
-
-    long memoryDiff = currentMemory - m_initialMemory;
-    if (memoryDiff &lt; 0)
-        NSLog(@&quot;%s Dirty memory reduced by %ld bytes (from %ld to %ld)\n&quot;, m_logString, (memoryDiff * -1), m_initialMemory, currentMemory);
-    else if (memoryDiff &gt; 0)
-        NSLog(@&quot;%s Dirty memory increased by %ld bytes (from %ld to %ld)\n&quot;, m_logString, memoryDiff, m_initialMemory, currentMemory);
-    else
-        NSLog(@&quot;%s No change in dirty memory used by process (at %ld bytes)\n&quot;, m_logString, currentMemory);
-}
-
-}
-
-#endif // PLATFORM(IOS)
</del></span></pre></div>
<a id="trunkSourceWebKitiosWebKitiOSexp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/ios/WebKit.iOS.exp (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/ios/WebKit.iOS.exp        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/ios/WebKit.iOS.exp        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -27,13 +27,6 @@
</span><span class="cx"> _WebViewportShrinkToFitKey
</span><span class="cx"> _WebViewportWidthKey
</span><span class="cx"> 
</span><del>-# So that we can use the MemoryMeasure class in MobileSafari
-__ZN6WebKit13MemoryMeasure10taskMemoryEv
-__ZN6WebKit13MemoryMeasure13enableLoggingEb
-__ZN6WebKit13MemoryMeasure16isLoggingEnabledEv
-__ZN6WebKit13MemoryMeasureD1Ev
-__ZN6WebKit13MemoryMeasureD2Ev
-
</del><span class="cx"> # For estimated progress notifications
</span><span class="cx"> _WebViewProgressBackgroundColorKey
</span><span class="cx"> _WebViewProgressEstimatedProgressKey
</span></span></pre></div>
<a id="trunkSourceWebKitmacChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/ChangeLog (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/ChangeLog        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/mac/ChangeLog        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -1,5 +1,17 @@
</span><span class="cx"> 2017-02-21  Andreas Kling  &lt;akling@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        [iOS] Remove old WebKit1 MemoryMeasure helper.
+        &lt;https://webkit.org/b/168675&gt;
+
+        Reviewed by Sam Weinig.
+
+        * Configurations/WebKitLegacy.xcconfig:
+        * Misc/WebCache.mm:
+        (+[WebCache emptyInMemoryResources]):
+        * WebView/WebView.mm:
+
+2017-02-21  Andreas Kling  &lt;akling@apple.com&gt;
+
</ins><span class="cx">         [iOS] WebKit1 should use shared memory pressure handler code.
</span><span class="cx">         &lt;https://webkit.org/b/168653&gt;
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkSourceWebKitmacConfigurationsWebKitLegacyxcconfig"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Configurations/WebKitLegacy.xcconfig (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Configurations/WebKitLegacy.xcconfig        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/mac/Configurations/WebKitLegacy.xcconfig        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -25,7 +25,7 @@
</span><span class="cx"> #include &quot;Version.xcconfig&quot;
</span><span class="cx"> 
</span><span class="cx"> EXCLUDED_SOURCE_FILE_NAMES[sdk=iphone*] = *.defs *.nib *.pdf *.tiff CarbonUtils.* CarbonWindowAdapter.* CarbonWindowContentView.* CarbonWindowFrame.* HIViewAdapter.* HIWebView.* OutlookQuirksUserScript.js PopupMenuMac.* SearchPopupMenuMac.* WebClipView.* WebDashboardRegion.* WebDynamicScrollBarsView.* WebIconDatabase.* WebIconDatabasePrivate.* WebInspectorClient.* WebJavaScriptTextInputPanel.* WebNSEventExtras.* WebNSPasteboardExtras.* WebNSWindowExtras.* WebPanelAuthenticationHandler.* WebPluginsPrivate.* WebStringTruncator.* WebTextCompletionController.*;
</span><del>-EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] = *IOS.mm MemoryMeasure.h WebCaretChangeListener.h WebFixedPositionContent.h WebFrameIOS.h WebFrameIPhone.h WebGeolocationCoreLocationProvider.h WebGeolocationPrivate.h WebGeolocationProviderIOS.h WebMIMETypeRegistry.h WebNSStringExtrasIOS.h WebNSStringExtrasIPhone.h WebPDFViewIOS.h WebPDFViewIPhone.h WebPDFViewPlaceholder.h WebSelectionRect.h WebUIKitDelegate.h WebUIKitSupport.h WebVisiblePosition.h DOMHTMLTextAreaElementPrivate.h DOMUIKitExtensions.h;
</del><ins>+EXCLUDED_SOURCE_FILE_NAMES[sdk=macosx*] = *IOS.mm WebCaretChangeListener.h WebFixedPositionContent.h WebFrameIOS.h WebFrameIPhone.h WebGeolocationCoreLocationProvider.h WebGeolocationPrivate.h WebGeolocationProviderIOS.h WebMIMETypeRegistry.h WebNSStringExtrasIOS.h WebNSStringExtrasIPhone.h WebPDFViewIOS.h WebPDFViewIPhone.h WebPDFViewPlaceholder.h WebSelectionRect.h WebUIKitDelegate.h WebUIKitSupport.h WebVisiblePosition.h DOMHTMLTextAreaElementPrivate.h DOMUIKitExtensions.h;
</ins><span class="cx"> 
</span><span class="cx"> EXPORTED_SYMBOLS_FILE = $(EXPORTED_SYMBOLS_FILE_$(CURRENT_ARCH));
</span><span class="cx"> EXPORTED_SYMBOLS_FILE_ = $(BUILT_PRODUCTS_DIR)/DerivedSources/WebKitLegacy/WebKitLegacy.generated.exp;
</span></span></pre></div>
<a id="trunkSourceWebKitmacMiscWebCachemm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/Misc/WebCache.mm (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/Misc/WebCache.mm        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/mac/Misc/WebCache.mm        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -41,7 +41,6 @@
</span><span class="cx"> #import &lt;wtf/RunLoop.h&gt;
</span><span class="cx"> 
</span><span class="cx"> #if PLATFORM(IOS)
</span><del>-#import &quot;MemoryMeasure.h&quot;
</del><span class="cx"> #import &quot;WebFrameInternal.h&quot;
</span><span class="cx"> #import &lt;WebCore/CachedImage.h&gt;
</span><span class="cx"> #import &lt;WebCore/Frame.h&gt;
</span><span class="lines">@@ -131,8 +130,6 @@
</span><span class="cx">     // schedule this method on the WebThread as well so as to pick up all the
</span><span class="cx">     // dead resources left behind after closing the WebViews
</span><span class="cx">     WebThreadRun(^{
</span><del>-        WebKit::MemoryMeasure measurer(&quot;[WebCache emptyInMemoryResources]&quot;);
-
</del><span class="cx">         // Toggling the cache model like this forces the cache to evict all its in-memory resources.
</span><span class="cx">         WebCacheModel cacheModel = [WebView _cacheModel];
</span><span class="cx">         [WebView _setCacheModel:WebCacheModelDocumentViewer];
</span></span></pre></div>
<a id="trunkSourceWebKitmacWebViewWebViewmm"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (212767 => 212768)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebKit/mac/WebView/WebView.mm        2017-02-21 22:57:09 UTC (rev 212767)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm        2017-02-21 23:07:51 UTC (rev 212768)
</span><span class="lines">@@ -243,7 +243,6 @@
</span><span class="cx"> #import &lt;WebCore/TextIndicatorWindow.h&gt;
</span><span class="cx"> #import &lt;WebCore/WebVideoFullscreenController.h&gt;
</span><span class="cx"> #else
</span><del>-#import &quot;MemoryMeasure.h&quot;
</del><span class="cx"> #import &quot;WebCaretChangeListener.h&quot;
</span><span class="cx"> #import &quot;WebChromeClientIOS.h&quot;
</span><span class="cx"> #import &quot;WebDefaultFormDelegate.h&quot;
</span></span></pre>
</div>
</div>

</body>
</html>