Add option to JSC to dump memory footprint on script completion
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jan 2019 03:01:31 +0000 (03:01 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Jan 2019 03:01:31 +0000 (03:01 +0000)
commit68e2dacd68f5097a886184963e676ff6fa456567
treea31d03d5798c27afec788b971bf310aa9cf63218
parent40533553214e00325b08abc4f1f6a4d2d83f5132
Add option to JSC to dump memory footprint on script completion
https://bugs.webkit.org/show_bug.cgi?id=193422

Reviewed by Mark Lam.

Added the --footprint option to dump peak and current memory usage.  This uses the same
OS calls added in r2362362.

* jsc.cpp:
(printUsageStatement):
(CommandLine::parseArguments):
(jscmain):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239969 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jsc.cpp