WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
[patch]
Patch
bug-84376-20120419220200.patch (text/plain), 20.85 KB, created by
Mark Pilgrim (Google)
on 2012-04-19 19:02:16 PDT
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Mark Pilgrim (Google)
Created:
2012-04-19 19:02:16 PDT
Size:
20.85 KB
patch
obsolete
>Index: Source/WebCore/ChangeLog >=================================================================== >--- Source/WebCore/ChangeLog (revision 114711) >+++ Source/WebCore/ChangeLog (working copy) >@@ -1,3 +1,42 @@ >+2012-04-19 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Call memoryUsageMB directly >+ https://bugs.webkit.org/show_bug.cgi?id=84376 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Now that memoryUsageMB has been moved from PlatformSupport.h to >+ Platform.h, we need to be able to call it directly >+ from WebCore/bindings/v8/V8GCController.cpp. >+ That means we need a new MemoryUsageSupport class in >+ WebCore/platform/ and an implementation in >+ WebCore/platform/chromium/MemoryUsageSupportChromium.cpp. >+ Other ports are welcome to implement their memory usage >+ functions if they wish. This pattern was based on the >+ HistogramSupport/HistogramSupportChromium classes. >+ >+ Part of a refactoring series. See tracking bug 82948. >+ >+ * CMakeLists.txt: >+ * GNUmakefile.list.am: >+ * Target.pri: >+ * WebCore.gypi: >+ * WebCore.vcproj/WebCore.vcproj: >+ * WebCore.xcodeproj/project.pbxproj: >+ * bindings/v8/V8GCController.cpp: >+ (WebCore): >+ * platform/MemoryUsageSupport.cpp: Added. >+ (WebCore): >+ (WebCore::MemoryUsageSupport::memoryUsageMB): >+ * platform/MemoryUsageSupport.h: Added. >+ (WebCore): >+ (MemoryUsageSupport): >+ * platform/chromium/MemoryUsageSupportChromium.cpp: Added. >+ (WebCore): >+ (WebCore::MemoryUsageSupport::memoryUsageMB): >+ * platform/chromium/PlatformSupport.h: >+ (PlatformSupport): >+ > 2012-04-19 Anders Carlsson <andersca@apple.com> > > computeNonFastScrollableRegion needs to traverse the entire frame tree >Index: Source/WebCore/CMakeLists.txt >=================================================================== >--- Source/WebCore/CMakeLists.txt (revision 114711) >+++ Source/WebCore/CMakeLists.txt (working copy) >@@ -1101,6 +1101,7 @@ SET(WebCore_SOURCES > platform/Length.cpp > platform/LinkHash.cpp > platform/Logging.cpp >+ platform/MemoryUsageSupport.cpp > platform/MIMETypeRegistry.cpp > platform/MemoryPressureHandler.cpp > platform/PlatformEvent.cpp >Index: Source/WebCore/GNUmakefile.list.am >=================================================================== >--- Source/WebCore/GNUmakefile.list.am (revision 114711) >+++ Source/WebCore/GNUmakefile.list.am (working copy) >@@ -3366,6 +3366,8 @@ webcore_sources += \ > Source/WebCore/platform/MIMETypeRegistry.h \ > Source/WebCore/platform/MemoryPressureHandler.cpp \ > Source/WebCore/platform/MemoryPressureHandler.h \ >+ Source/WebCore/platform/MemoryUsageSupport.cpp \ >+ Source/WebCore/platform/MemoryUsageSupport.h \ > Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.cpp \ > Source/WebCore/platform/image-decoders/bmp/BMPImageDecoder.h \ > Source/WebCore/platform/image-decoders/bmp/BMPImageReader.cpp \ >Index: Source/WebCore/Target.pri >=================================================================== >--- Source/WebCore/Target.pri (revision 114711) >+++ Source/WebCore/Target.pri (working copy) >@@ -1140,6 +1140,7 @@ SOURCES += \ > platform/LinkHash.cpp \ > platform/Logging.cpp \ > platform/MemoryPressureHandler.cpp \ >+ platform/MemoryUsageSupport.cpp \ > platform/MIMETypeRegistry.cpp \ > platform/mock/DeviceOrientationClientMock.cpp \ > platform/mock/GeolocationClientMock.cpp \ >@@ -2293,6 +2294,7 @@ HEADERS += \ > platform/Logging.h \ > platform/Language.h \ > platform/MemoryPressureHandler.h \ >+ platform/MemoryUsageSupport.h \ > platform/MIMETypeRegistry.h \ > platform/network/AuthenticationChallengeBase.h \ > platform/network/AuthenticationClient.h \ >Index: Source/WebCore/WebCore.gypi >=================================================================== >--- Source/WebCore/WebCore.gypi (revision 114711) >+++ Source/WebCore/WebCore.gypi (working copy) >@@ -288,6 +288,7 @@ > 'platform/LocalizedStrings.h', > 'platform/Logging.h', > 'platform/MemoryPressureHandler.h', >+ 'platform/MemoryUsageSupport.h', > 'platform/MIMETypeRegistry.h', > 'platform/NotImplemented.h', > 'platform/PlatformEvent.cpp', >@@ -3284,6 +3285,7 @@ > 'platform/chromium/KeyboardCodes.h', > 'platform/chromium/LanguageChromium.cpp', > 'platform/chromium/LinkHashChromium.cpp', >+ 'platform/chromium/MemoryUsageSupportChromium.cpp', > 'platform/chromium/MIMETypeRegistryChromium.cpp', > 'platform/chromium/PasteboardChromium.cpp', > 'platform/chromium/PasteboardPrivate.h', >Index: Source/WebCore/WebCore.vcproj/WebCore.vcproj >=================================================================== >--- Source/WebCore/WebCore.vcproj/WebCore.vcproj (revision 114711) >+++ Source/WebCore/WebCore.vcproj/WebCore.vcproj (working copy) >@@ -27606,6 +27606,14 @@ > > > </File> > <File >+ RelativePath="..\platform\MemoryUsageSupport.cpp" >+ > >+ </File> >+ <File >+ RelativePath="..\platform\MemoryUsageSupport.h" >+ > >+ </File> >+ <File > RelativePath="..\platform\MIMETypeRegistry.cpp" > > > </File> >Index: Source/WebCore/WebCore.xcodeproj/project.pbxproj >=================================================================== >--- Source/WebCore/WebCore.xcodeproj/project.pbxproj (revision 114711) >+++ Source/WebCore/WebCore.xcodeproj/project.pbxproj (working copy) >@@ -5806,12 +5806,14 @@ > D619A308144E00BE004BC302 /* ChildListMutationScope.h in Headers */ = {isa = PBXBuildFile; fileRef = D619A306144E00BE004BC302 /* ChildListMutationScope.h */; }; > D630E2AC149BF344005B2F93 /* HistogramSupport.h in Headers */ = {isa = PBXBuildFile; fileRef = D630E2AB149BF344005B2F93 /* HistogramSupport.h */; }; > D630E2AC149BF344005B2F94 /* StatsCounter.h in Headers */ = {isa = PBXBuildFile; fileRef = D630E2AB149BF344005B2F94 /* StatsCounter.h */; }; >+ D630E2AC149BF344005B2F95 /* MemoryUsageSupport.h in Headers */ = {isa = PBXBuildFile; fileRef = D630E2AB149BF344005B2F95 /* MemoryUsageSupport.h */; }; > D6E276AF14637455001D280A /* MutationObserverRegistration.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6E276AD14637455001D280A /* MutationObserverRegistration.cpp */; }; > D6E276B014637455001D280A /* MutationObserverRegistration.h in Headers */ = {isa = PBXBuildFile; fileRef = D6E276AE14637455001D280A /* MutationObserverRegistration.h */; }; > D6E528A3149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6E528A1149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp */; }; > D6E528A4149A926D00EFE1F3 /* MutationObserverInterestGroup.h in Headers */ = {isa = PBXBuildFile; fileRef = D6E528A2149A926D00EFE1F3 /* MutationObserverInterestGroup.h */; }; > D6FDAEF3149C06190037B1E1 /* HistogramSupport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */; }; > D6FDAEF3149C06190037B1E2 /* StatsCounter.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6FDAEF2149C06190037B1E2 /* StatsCounter.cpp */; }; >+ D6FDAEF3149C06190037B1E3 /* MemoryUsageSupport.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D6FDAEF2149C06190037B1E3 /* MemoryUsageSupport.cpp */; }; > D70AD65713E1342B005B50B4 /* RenderRegion.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D70AD65513E1342B005B50B4 /* RenderRegion.cpp */; }; > D70AD65813E1342B005B50B4 /* RenderRegion.h in Headers */ = {isa = PBXBuildFile; fileRef = D70AD65613E1342B005B50B4 /* RenderRegion.h */; }; > D72F6D79153159A3001EE44E /* FlowThreadController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = D72F6D77153159A3001EE44E /* FlowThreadController.cpp */; }; >@@ -12934,12 +12936,14 @@ > D619A306144E00BE004BC302 /* ChildListMutationScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ChildListMutationScope.h; sourceTree = "<group>"; }; > D630E2AB149BF344005B2F93 /* HistogramSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HistogramSupport.h; sourceTree = "<group>"; }; > D630E2AB149BF344005B2F94 /* StatsCounter.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StatsCounter.h; sourceTree = "<group>"; }; >+ D630E2AB149BF344005B2F95 /* MemoryUsageSupport.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MemoryUsageSupport.h; sourceTree = "<group>"; }; > D6E276AD14637455001D280A /* MutationObserverRegistration.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MutationObserverRegistration.cpp; sourceTree = "<group>"; }; > D6E276AE14637455001D280A /* MutationObserverRegistration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MutationObserverRegistration.h; sourceTree = "<group>"; }; > D6E528A1149A926D00EFE1F3 /* MutationObserverInterestGroup.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MutationObserverInterestGroup.cpp; sourceTree = "<group>"; }; > D6E528A2149A926D00EFE1F3 /* MutationObserverInterestGroup.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MutationObserverInterestGroup.h; sourceTree = "<group>"; }; > D6FDAEF2149C06190037B1E1 /* HistogramSupport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = HistogramSupport.cpp; sourceTree = "<group>"; }; > D6FDAEF2149C06190037B1E2 /* StatsCounter.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = StatsCounter.cpp; sourceTree = "<group>"; }; >+ D6FDAEF2149C06190037B1E3 /* MemoryUsageSupport.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = MemoryUsageSupport.cpp; sourceTree = "<group>"; }; > D70AD65513E1342B005B50B4 /* RenderRegion.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = RenderRegion.cpp; sourceTree = "<group>"; }; > D70AD65613E1342B005B50B4 /* RenderRegion.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderRegion.h; sourceTree = "<group>"; }; > D72F6D77153159A3001EE44E /* FlowThreadController.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = FlowThreadController.cpp; sourceTree = "<group>"; }; >@@ -20248,6 +20252,8 @@ > A8239DFF09B3CF8A00B60641 /* Logging.h */, > 657EDA061385CB97004E0645 /* MemoryPressureHandler.cpp */, > 657EDA071385CB97004E0645 /* MemoryPressureHandler.h */, >+ D6FDAEF2149C06190037B1E3 /* MemoryUsageSupport.cpp */, >+ D630E2AB149BF344005B2F95 /* MemoryUsageSupport.h */, > BC772C4C0C4EB3040083285F /* MIMETypeRegistry.cpp */, > BC772C4D0C4EB3040083285F /* MIMETypeRegistry.h */, > 98EB1F941313FE0500D0E1EA /* NotImplemented.h */, >@@ -23721,6 +23727,7 @@ > BCB16C180979C3BD00467741 /* MemoryCache.h in Headers */, > 9FFE3E7B11B59C5D0037874E /* MemoryInfo.h in Headers */, > 6571DCC81385E6A400702DD0 /* MemoryPressureHandler.h in Headers */, >+ D630E2AC149BF344005B2F95 /* MemoryUsageSupport.h in Headers */, > 93309DFA099E64920056E581 /* MergeIdenticalElementsCommand.h in Headers */, > E1ADECCE0E76AD8B004A1A5E /* MessageChannel.h in Headers */, > 75793E840D0CE0B3007FC0AC /* MessageEvent.h in Headers */, >@@ -26938,6 +26945,7 @@ > 9FFE3E7A11B59C5D0037874E /* MemoryInfo.cpp in Sources */, > 657EDA081385CB97004E0645 /* MemoryPressureHandler.cpp in Sources */, > 657EDA0B1385CBD8004E0645 /* MemoryPressureHandlerMac.mm in Sources */, >+ D6FDAEF3149C06190037B1E3 /* MemoryUsageSupport.cpp in Sources */, > 93309DF9099E64920056E581 /* MergeIdenticalElementsCommand.cpp in Sources */, > E1ADECCF0E76AD8B004A1A5E /* MessageChannel.cpp in Sources */, > 75793E830D0CE0B3007FC0AC /* MessageEvent.cpp in Sources */, >Index: Source/WebCore/bindings/v8/V8GCController.cpp >=================================================================== >--- Source/WebCore/bindings/v8/V8GCController.cpp (revision 114711) >+++ Source/WebCore/bindings/v8/V8GCController.cpp (working copy) >@@ -37,6 +37,7 @@ > #include "DOMImplementation.h" > #include "HTMLImageElement.h" > #include "HTMLNames.h" >+#include "MemoryUsageSupport.h" > #include "MessagePort.h" > #include "PlatformSupport.h" > #include "RetainedDOMInfo.h" >@@ -468,7 +469,7 @@ namespace { > int getMemoryUsageInMB() > { > #if PLATFORM(CHROMIUM) >- return PlatformSupport::memoryUsageMB(); >+ return MemoryUsageSupport::memoryUsageMB(); > #else > return 0; > #endif >Index: Source/WebCore/platform/MemoryUsageSupport.cpp >=================================================================== >--- Source/WebCore/platform/MemoryUsageSupport.cpp (revision 0) >+++ Source/WebCore/platform/MemoryUsageSupport.cpp (revision 0) >@@ -0,0 +1,41 @@ >+/* >+ * Copyright (C) 2012 Google 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: >+ * >+ * * Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * * 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. >+ * * Neither the name of Google Inc. nor the names of its >+ * contributors may be used to endorse or promote products derived from >+ * this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT >+ * OWNER OR 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. >+ */ >+ >+#include "config.h" >+#include "MemoryUsageSupport.h" >+ >+namespace WebCore { >+ >+int MemoryUsageSupport::memoryUsageMB() >+{ >+ return 0; >+} >+ >+} // namespace WebCore >Index: Source/WebCore/platform/MemoryUsageSupport.h >=================================================================== >--- Source/WebCore/platform/MemoryUsageSupport.h (revision 0) >+++ Source/WebCore/platform/MemoryUsageSupport.h (revision 0) >@@ -0,0 +1,43 @@ >+/* >+ * Copyright (C) 2012 Google 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: >+ * >+ * * Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * * 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. >+ * * Neither the name of Google Inc. nor the names of its >+ * contributors may be used to endorse or promote products derived from >+ * this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT >+ * OWNER OR 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 MemoryUsageSupport_h >+#define MemoryUsageSupport_h >+ >+namespace WebCore { >+ >+class MemoryUsageSupport { >+public: >+ static int memoryUsageMB(); >+}; >+ >+} // namespace WebCore >+ >+#endif // MemoryUsageSupport_h >Index: Source/WebCore/platform/chromium/MemoryUsageSupportChromium.cpp >=================================================================== >--- Source/WebCore/platform/chromium/MemoryUsageSupportChromium.cpp (revision 0) >+++ Source/WebCore/platform/chromium/MemoryUsageSupportChromium.cpp (revision 0) >@@ -0,0 +1,45 @@ >+/* >+ * Copyright (C) 2012 Google 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: >+ * >+ * * Redistributions of source code must retain the above copyright >+ * notice, this list of conditions and the following disclaimer. >+ * * 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. >+ * * Neither the name of Google Inc. nor the names of its >+ * contributors may be used to endorse or promote products derived from >+ * this software without specific prior written permission. >+ * >+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND 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 THE COPYRIGHT >+ * OWNER OR 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. >+ */ >+ >+#include "config.h" >+#include "MemoryUsageSupport.h" >+ >+#include <public/Platform.h> >+ >+namespace WebCore { >+ >+// Returns the current space allocated for the pagefile, in MB. >+// That is committed size for Windows and virtual memory size for POSIX >+int MemoryUsageSupport::memoryUsageMB() >+{ >+ return WebKit::Platform::current()->memoryUsageMB(); >+} >+ >+} // namespace WebCore >Index: Source/WebCore/platform/chromium/PlatformSupport.h >=================================================================== >--- Source/WebCore/platform/chromium/PlatformSupport.h (revision 114711) >+++ Source/WebCore/platform/chromium/PlatformSupport.h (working copy) >@@ -198,9 +198,6 @@ public: > static bool layoutTestMode(); > > // Memory ------------------------------------------------------------- >- // Returns the current space allocated for the pagefile, in MB. >- // That is committed size for Windows and virtual memory size for POSIX >- static int memoryUsageMB(); > // Same as above, but always returns actual value, without any caches. > static int actualMemoryUsageMB(); > // If memory usage is below this threshold, do not bother forcing GC. >Index: Source/WebKit/chromium/ChangeLog >=================================================================== >--- Source/WebKit/chromium/ChangeLog (revision 114711) >+++ Source/WebKit/chromium/ChangeLog (working copy) >@@ -1,3 +1,15 @@ >+2012-04-19 Mark Pilgrim <pilgrim@chromium.org> >+ >+ [Chromium] Call memoryUsageMB directly >+ https://bugs.webkit.org/show_bug.cgi?id=84376 >+ >+ Reviewed by NOBODY (OOPS!). >+ >+ Part of a refactoring series. See tracking bug 82948. >+ >+ * src/PlatformSupport.cpp: >+ (WebCore): >+ > 2012-04-19 Joshua Bell <jsbell@chromium.org> > > [Chromium] IndexedDB: Prep for changing keyPath return type >Index: Source/WebKit/chromium/src/PlatformSupport.cpp >=================================================================== >--- Source/WebKit/chromium/src/PlatformSupport.cpp (revision 114711) >+++ Source/WebKit/chromium/src/PlatformSupport.cpp (working copy) >@@ -926,11 +926,6 @@ void PlatformSupport::notifyJSOutOfMemor > webFrame->client()->didExhaustMemoryAvailableForScript(webFrame); > } > >-int PlatformSupport::memoryUsageMB() >-{ >- return static_cast<int>(webKitPlatformSupport()->memoryUsageMB()); >-} >- > int PlatformSupport::actualMemoryUsageMB() > { > return static_cast<int>(webKitPlatformSupport()->actualMemoryUsageMB());
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Formatted Diff
|
Diff
Attachments on
bug 84376
:
137964
|
138025
|
138172