Title: [263978] trunk/Source/WTF
Revision
263978
Author
[email protected]
Date
2020-07-06 12:03:45 -0700 (Mon, 06 Jul 2020)

Log Message

Spams system logs with "Current memory footprint: 10 MB"
https://bugs.webkit.org/show_bug.cgi?id=213991

Patch by Michael Catanzaro <[email protected]> on 2020-07-06
Reviewed by Darin Adler.

This particular log statement is too much spam in the system journal, since it prints
continuously under normal operating conditions. Let's limit it only to Apple platforms,
which have had RELEASE_LOG() for a long time and where this is presumably expected.

* wtf/MemoryPressureHandler.cpp:
(WTF::MemoryPressureHandler::measurementTimerFired):

Modified Paths

Diff

Modified: trunk/Source/WTF/ChangeLog (263977 => 263978)


--- trunk/Source/WTF/ChangeLog	2020-07-06 19:01:37 UTC (rev 263977)
+++ trunk/Source/WTF/ChangeLog	2020-07-06 19:03:45 UTC (rev 263978)
@@ -1,3 +1,17 @@
+2020-07-06  Michael Catanzaro  <[email protected]>
+
+        Spams system logs with "Current memory footprint: 10 MB"
+        https://bugs.webkit.org/show_bug.cgi?id=213991
+
+        Reviewed by Darin Adler.
+
+        This particular log statement is too much spam in the system journal, since it prints
+        continuously under normal operating conditions. Let's limit it only to Apple platforms,
+        which have had RELEASE_LOG() for a long time and where this is presumably expected.
+
+        * wtf/MemoryPressureHandler.cpp:
+        (WTF::MemoryPressureHandler::measurementTimerFired):
+
 2020-07-06  Sam Weinig  <[email protected]>
 
         Compile-time enable (but leave disabled at runtime by default) date/time input types on macOS to allow testing of cross platform (e.g. DOM) aspects of the controls

Modified: trunk/Source/WTF/wtf/MemoryPressureHandler.cpp (263977 => 263978)


--- trunk/Source/WTF/wtf/MemoryPressureHandler.cpp	2020-07-06 19:01:37 UTC (rev 263977)
+++ trunk/Source/WTF/wtf/MemoryPressureHandler.cpp	2020-07-06 19:03:45 UTC (rev 263978)
@@ -191,7 +191,9 @@
 void MemoryPressureHandler::measurementTimerFired()
 {
     size_t footprint = memoryFootprint();
+#if PLATFORM(COCOA)
     RELEASE_LOG(MemoryPressure, "Current memory footprint: %zu MB", footprint / MB);
+#endif
     if (footprint >= thresholdForMemoryKill()) {
         shrinkOrDie();
         return;
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to