Changeset 198975 in webkit


Ignore:
Timestamp:
Apr 2, 2016 2:14:08 PM (8 years ago)
Author:
commit-queue@webkit.org
Message:

[JSC] Add an option to avoid disassembling baseline code for the JSC Profiler
https://bugs.webkit.org/show_bug.cgi?id=156127

Patch by Benjamin Poulain <bpoulain@apple.com> on 2016-04-02
Reviewed by Mark Lam.

The profiler run out of memory on big programs if you dump
the baseline disassembly.

  • jit/JIT.cpp:

(JSC::JIT::privateCompile):

  • runtime/Options.h:
Location:
trunk/Source/JavaScriptCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r198972 r198975  
     12016-04-02  Benjamin Poulain  <bpoulain@apple.com>
     2
     3        [JSC] Add an option to avoid disassembling baseline code for the JSC Profiler
     4        https://bugs.webkit.org/show_bug.cgi?id=156127
     5
     6        Reviewed by Mark Lam.
     7
     8        The profiler run out of memory on big programs if you dump
     9        the baseline disassembly.
     10
     11        * jit/JIT.cpp:
     12        (JSC::JIT::privateCompile):
     13        * runtime/Options.h:
     14
    1152016-04-02  Dan Bernstein  <mitz@apple.com>
    216
  • trunk/Source/JavaScriptCore/jit/JIT.cpp

    r198364 r198975  
    516516        m_vm->typeProfilerLog()->processLogEntries(ASCIILiteral("Preparing for JIT compilation."));
    517517   
    518     if (Options::dumpDisassembly() || m_vm->m_perBytecodeProfiler)
     518    if (Options::dumpDisassembly() || (m_vm->m_perBytecodeProfiler && Options::disassembleBaselineForProfiler()))
    519519        m_disassembler = std::make_unique<JITDisassembler>(m_codeBlock);
    520520    if (m_vm->m_perBytecodeProfiler) {
     
    717717    }
    718718    if (m_compilation) {
    719         m_disassembler->reportToProfiler(m_compilation.get(), patchBuffer);
     719        if (Options::disassembleBaselineForProfiler())
     720            m_disassembler->reportToProfiler(m_compilation.get(), patchBuffer);
    720721        m_vm->m_perBytecodeProfiler->addCompilation(m_compilation);
    721722    }
  • trunk/Source/JavaScriptCore/runtime/Options.h

    r198364 r198975  
    209209    \
    210210    v(bool, useProfiler, false, nullptr) \
     211    v(bool, disassembleBaselineForProfiler, true, nullptr) \
    211212    \
    212213    v(bool, useArchitectureSpecificOptimizations, true, nullptr) \
Note: See TracChangeset for help on using the changeset viewer.