Ignore:
Timestamp:
Sep 3, 2008, 2:53:17 PM (17 years ago)
Author:
[email protected]
Message:

JavaScriptCore:

2008-09-03 Kevin McCullough <[email protected]>

Reviewed by Tim.

Remove the rest of the "zombie" code from the profiler.

  • There is no longer a need for the ProfilerClient callback mechanism.
  • API/JSProfilerPrivate.cpp: (JSStartProfiling):
  • JavaScriptCore.exp:
  • profiler/HeavyProfile.h:
  • profiler/ProfileGenerator.cpp: (KJS::ProfileGenerator::create): (KJS::ProfileGenerator::ProfileGenerator):
  • profiler/ProfileGenerator.h: (KJS::ProfileGenerator::profileGroup):
  • profiler/Profiler.cpp: (KJS::Profiler::startProfiling): (KJS::Profiler::stopProfiling): Immediately return the profile when stopped instead of using a callback.
  • profiler/Profiler.h:
  • profiler/TreeProfile.h:

WebCore:

2008-09-03 Kevin McCullough <[email protected]>

Reviewed by Tim.

Remove the rest of the "zombie" code from the profiler.

  • There is no longer a need for the ProfilerClient callback mechanism.
  • page/Console.cpp: (WebCore::Console::Console): (WebCore::Console::profile): (WebCore::Console::profileEnd): Move the variables from the header to here since we don't have to wait for a callback to use them.
  • page/Console.h:
  • page/InspectorController.cpp: (WebCore::InspectorController::startUserInitiatedProfiling): (WebCore::InspectorController::stopUserInitiatedProfiling):
  • page/InspectorController.h:
File:
1 edited

Legend:

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

    r36058 r36068  
    4040static const char* NonJSExecution = "(idle)";
    4141
    42 PassRefPtr<ProfileGenerator> ProfileGenerator::create(const UString& title, ExecState* originatingExec, ProfilerClient* client, unsigned uid)
     42PassRefPtr<ProfileGenerator> ProfileGenerator::create(const UString& title, ExecState* originatingExec, unsigned uid)
    4343{
    44     return adoptRef(new ProfileGenerator(title, originatingExec, client, uid));
     44    return adoptRef(new ProfileGenerator(title, originatingExec, uid));
    4545}
    4646
    47 ProfileGenerator::ProfileGenerator(const UString& title, ExecState* originatingExec, ProfilerClient* client, unsigned uid)
     47ProfileGenerator::ProfileGenerator(const UString& title, ExecState* originatingExec, unsigned uid)
    4848    : m_originatingGlobalExec(originatingExec->lexicalGlobalObject()->globalExec())
    4949    , m_profileGroup(originatingExec->lexicalGlobalObject()->profileGroup())
    50     , m_client(client)
     50
    5151{
    5252    m_profile = Profile::create(title, uid);
Note: See TracChangeset for help on using the changeset viewer.