Add JSC option to show time spent in each optimization phase
authormsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 21:28:58 +0000 (21:28 +0000)
committermsaboff@apple.com <msaboff@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Oct 2016 21:28:58 +0000 (21:28 +0000)
commit2d67f3213b357b3bedd782d9f0e232437d294341
tree4645421ca37dc8f81038cd5620286b4b00ded644
parentc6205c295ad2493446bf92ff0810c7d6be1884b3
Add JSC option to show time spent in each optimization phase
https://bugs.webkit.org/show_bug.cgi?id=163617

Reviewed by Saam Barati.

Added reportDFGPhaseTimes option.  This outputs one line per phase similar to
    Phase CPS rethreading took 0.2661 ms

One line is output for each phase run.

* dfg/DFGPhase.h:
(JSC::DFG::runAndLog):
* dfg/DFGPlan.cpp:
(JSC::DFG::Plan::compileInThread):
* runtime/Options.cpp:
(JSC::recomputeDependentOptions):
* runtime/Options.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@207491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/dfg/DFGPhase.h
Source/JavaScriptCore/dfg/DFGPlan.cpp
Source/JavaScriptCore/runtime/Options.cpp
Source/JavaScriptCore/runtime/Options.h