Bug 193422

Summary: Add option to JSC to dump memory footprint on script completion
Product: WebKit Reporter: Michael Saboff <msaboff>
Component: JavaScriptCoreAssignee: Michael Saboff <msaboff>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, csaavedra, ews-watchlist, keith_miller, mark.lam, saam, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Michael Saboff 2019-01-14 18:11:55 PST
This is similar to the work done in <https://bugs.webkit.org/show_bug.cgi?id=189768> - "Add functions to measure memory footprint to JSC", extending it to a command line option.  Use of this option would dump the peak and current footprint when processing a script is completed.
Comment 1 Radar WebKit Bug Importer 2019-01-14 18:12:57 PST
<rdar://problem/47273045>
Comment 2 Michael Saboff 2019-01-14 18:22:01 PST
Created attachment 359114 [details]
Patch
Comment 3 Mark Lam 2019-01-14 18:23:22 PST
Comment on attachment 359114 [details]
Patch

r=me
Comment 4 WebKit Commit Bot 2019-01-14 19:01:38 PST
Comment on attachment 359114 [details]
Patch

Clearing flags on attachment: 359114

Committed r239969: <https://trac.webkit.org/changeset/239969>
Comment 5 WebKit Commit Bot 2019-01-14 19:01:39 PST
All reviewed patches have been landed.  Closing bug.
Comment 6 Claudio Saavedra 2019-01-15 03:39:44 PST
I submitted a patch in https://bugs.webkit.org/show_bug.cgi?id=193441 to fix the printf()-related warnings.