Title: [236814] trunk/Source/_javascript_Core
Revision
236814
Author
msab...@apple.com
Date
2018-10-03 16:24:10 -0700 (Wed, 03 Oct 2018)

Log Message

Command line jsc should report memory footprint in bytes
https://bugs.webkit.org/show_bug.cgi?id=190267

Reviewed by Mark Lam.

Change to leave the footprint values from the system unmodified.

* jsc.cpp:
(JSCMemoryFootprint::finishCreation):

Modified Paths

Diff

Modified: trunk/Source/_javascript_Core/ChangeLog (236813 => 236814)


--- trunk/Source/_javascript_Core/ChangeLog	2018-10-03 22:02:44 UTC (rev 236813)
+++ trunk/Source/_javascript_Core/ChangeLog	2018-10-03 23:24:10 UTC (rev 236814)
@@ -1,3 +1,15 @@
+2018-10-03  Michael Saboff  <msab...@apple.com>
+
+        Command line jsc should report memory footprint in bytes
+        https://bugs.webkit.org/show_bug.cgi?id=190267
+
+        Reviewed by Mark Lam.
+
+        Change to leave the footprint values from the system unmodified.
+
+        * jsc.cpp:
+        (JSCMemoryFootprint::finishCreation):
+
 2018-10-03  Mark Lam  <mark....@apple.com>
 
         Suppress unreachable code warning for LLIntAssembly.h code.

Modified: trunk/Source/_javascript_Core/jsc.cpp (236813 => 236814)


--- trunk/Source/_javascript_Core/jsc.cpp	2018-10-03 22:02:44 UTC (rev 236813)
+++ trunk/Source/_javascript_Core/jsc.cpp	2018-10-03 23:24:10 UTC (rev 236814)
@@ -1231,9 +1231,8 @@
 
         MemoryFootprint footprint = MemoryFootprint::now();
 
-        // Report sizes in KBytes so that values up to GB are still integers.
-        addProperty(vm, "current", jsNumber(footprint.current / 1024));
-        addProperty(vm, "peak", jsNumber(footprint.peak / 1024));
+        addProperty(vm, "current", jsNumber(footprint.current));
+        addProperty(vm, "peak", jsNumber(footprint.peak));
     }
 
     DECLARE_INFO;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to