Ignore:
Timestamp:
Oct 18, 2016, 2:28:58 PM (9 years ago)
Author:
[email protected]
Message:

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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGPlan.cpp

    r206555 r207491  
    184184    CompilationScope compilationScope;
    185185
    186     if (logCompilationChanges(mode))
     186    if (logCompilationChanges(mode) || Options::reportDFGPhaseTimes())
    187187        dataLog("DFG(Plan) compiling ", *codeBlock, " with ", mode, ", number of instructions = ", codeBlock->instructionCount(), "\n");
    188188
Note: See TracChangeset for help on using the changeset viewer.