Ignore:
Timestamp:
Mar 21, 2013, 6:17:09 PM (12 years ago)
Author:
[email protected]
Message:

JSC profiler should have an at-a-glance report of the success of DFG optimization
https://bugs.webkit.org/show_bug.cgi?id=112988

Reviewed by Geoffrey Garen.

Source/JavaScriptCore:

  • dfg/DFGByteCodeParser.cpp:

(JSC::DFG::ByteCodeParser::handleCall):
(JSC::DFG::ByteCodeParser::handleGetById):
(JSC::DFG::ByteCodeParser::parseBlock):

  • profiler/ProfilerCompilation.cpp:

(JSC::Profiler::Compilation::Compilation):
(JSC::Profiler::Compilation::toJS):

  • profiler/ProfilerCompilation.h:

(JSC::Profiler::Compilation::noticeInlinedGetById):
(JSC::Profiler::Compilation::noticeInlinedPutById):
(JSC::Profiler::Compilation::noticeInlinedCall):
(Compilation):

  • runtime/CommonIdentifiers.h:

Tools:

  • Scripts/display-profiler-output:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/profiler/ProfilerCompilation.cpp

    r141050 r146548  
    11/*
    2  * Copyright (C) 2012 Apple Inc. All rights reserved.
     2 * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    3838    : m_bytecodes(bytecodes)
    3939    , m_kind(kind)
     40    , m_numInlinedGetByIds(0)
     41    , m_numInlinedPutByIds(0)
     42    , m_numInlinedCalls(0)
    4043{
    4144}
     
    125128    result->putDirect(exec->globalData(), exec->propertyNames().osrExits, exits);
    126129   
     130    result->putDirect(exec->globalData(), exec->propertyNames().numInlinedGetByIds, jsNumber(m_numInlinedGetByIds));
     131    result->putDirect(exec->globalData(), exec->propertyNames().numInlinedPutByIds, jsNumber(m_numInlinedPutByIds));
     132    result->putDirect(exec->globalData(), exec->propertyNames().numInlinedCalls, jsNumber(m_numInlinedCalls));
     133   
    127134    return result;
    128135}
Note: See TracChangeset for help on using the changeset viewer.