Ignore:
Timestamp:
May 14, 2008, 5:25:48 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-05-14 Kevin McCullough <[email protected]>

Reviewed by Sam.

<rdar://problem/5770054> JavaScript profiler (10928)

  • Rename FunctionCallProfile to ProfileNode.
  • GNUmakefile.am:
  • JavaScriptCore.exp:
  • JavaScriptCore.pri:
  • JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • JavaScriptCoreSources.bkl:
  • profiler/FunctionCallProfile.cpp: Removed.
  • profiler/FunctionCallProfile.h: Removed.
  • profiler/Profile.cpp: (KJS::Profile::Profile): (KJS::Profile::willExecute):
  • profiler/Profile.h: (KJS::Profile::callTree):
  • profiler/ProfileNode.cpp: Copied from profiler/FunctionCallProfile.cpp. (KJS::ProfileNode::ProfileNode): (KJS::ProfileNode::willExecute): (KJS::ProfileNode::didExecute): (KJS::ProfileNode::addChild): (KJS::ProfileNode::findChild): (KJS::ProfileNode::stopProfiling): (KJS::ProfileNode::selfTime): (KJS::ProfileNode::printDataInspectorStyle): (KJS::ProfileNode::printDataSampleStyle): (KJS::ProfileNode::endAndRecordCall):
  • profiler/ProfileNode.h: Copied from profiler/FunctionCallProfile.h. (KJS::ProfileNode::create): (KJS::ProfileNode::children):
  • profiler/Profiler.cpp:

WebCore:

2008-05-14 Kevin McCullough <[email protected]>

Reviewed by Sam.

<rdar://problem/5770054> JavaScript profiler (10928)

  • Rename FunctionCallProfile to ProfileNode
  • ForwardingHeaders/profiler/FunctionCallProfile.h: Removed.
  • ForwardingHeaders/profiler/ProfileNode.h: Copied from ForwardingHeaders/profiler/FunctionCallProfile.h.
  • GNUmakefile.am:
  • WebCore.pro:
  • WebCore.vcproj/WebCore.vcproj:
  • WebCore.xcodeproj/project.pbxproj:
  • WebCoreSources.bkl:
  • page/JavaScriptFunctionCallProfile.cpp: Removed.
  • page/JavaScriptFunctionCallProfile.h: Removed.
  • page/JavaScriptProfile.cpp:
  • page/JavaScriptProfileNode.cpp: Copied from page/JavaScriptFunctionCallProfile.cpp. (WebCore::ProfileNodeCache): (WebCore::getFunctionName): (WebCore::getTotalTime): (WebCore::getSelfTime): (WebCore::getNumberOfCalls): (WebCore::getChildren): (WebCore::finalize): (WebCore::ProfileNodeClass): (WebCore::toJS):
  • page/JavaScriptProfileNode.h: Copied from page/JavaScriptFunctionCallProfile.h.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/profiler/Profile.cpp

    r33382 r33466  
    2727#include "Profile.h"
    2828
    29 #include "FunctionCallProfile.h"
     29#include "ProfileNode.h"
    3030#include "JSGlobalObject.h"
    3131#include "ExecState.h"
     
    4343    // FIXME: When multi-threading is supported this will be a vector and calls
    4444    // into the profiler will need to know which thread it is executing on.
    45     m_callTree = FunctionCallProfile::create("Thread_1");
     45    m_callTree = ProfileNode::create("Thread_1");
    4646}
    4747
    4848void Profile::willExecute(const Vector<UString>& callStackNames)
    4949{
    50     RefPtr<FunctionCallProfile> callTreeInsertionPoint;
    51     RefPtr<FunctionCallProfile> foundNameInTree = m_callTree;
     50    RefPtr<ProfileNode> callTreeInsertionPoint;
     51    RefPtr<ProfileNode> foundNameInTree = m_callTree;
    5252    NameIterator callStackLocation = callStackNames.begin();
    5353
     
    6060    if (!foundNameInTree) {   // Insert remains of the stack into the call tree.
    6161        --callStackLocation;
    62         for (RefPtr<FunctionCallProfile> next; callStackLocation != callStackNames.end(); ++callStackLocation) {
    63             next = FunctionCallProfile::create(*callStackLocation);
     62        for (RefPtr<ProfileNode> next; callStackLocation != callStackNames.end(); ++callStackLocation) {
     63            next = ProfileNode::create(*callStackLocation);
    6464            callTreeInsertionPoint->addChild(next);
    6565            callTreeInsertionPoint = next;
Note: See TracChangeset for help on using the changeset viewer.