Ignore:
Timestamp:
Oct 3, 2018, 4:24:10 PM (7 years ago)
Author:
[email protected]
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):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/jsc.cpp

    r236697 r236814  
    12321232        MemoryFootprint footprint = MemoryFootprint::now();
    12331233
    1234         // Report sizes in KBytes so that values up to GB are still integers.
    1235         addProperty(vm, "current", jsNumber(footprint.current / 1024));
    1236         addProperty(vm, "peak", jsNumber(footprint.peak / 1024));
     1234        addProperty(vm, "current", jsNumber(footprint.current));
     1235        addProperty(vm, "peak", jsNumber(footprint.peak));
    12371236    }
    12381237
Note: See TracChangeset for help on using the changeset viewer.