Changeset 173198 in webkit


Ignore:
Timestamp:
Sep 2, 2014 8:17:47 PM (10 years ago)
Author:
Brian Burg
Message:

Web Inspector: remove ProfilerAgent and legacy profiler files in the frontend
https://bugs.webkit.org/show_bug.cgi?id=136462

Reviewed by Timothy Hatcher.

Source/JavaScriptCore:

It's not used by the frontend anymore.

  • inspector/JSConsoleClient.cpp:

(Inspector::JSConsoleClient::JSConsoleClient): Stub out console.profile/profileEnd
methods since they didn't work for JSContexts anyway.
(Inspector::JSConsoleClient::profile):
(Inspector::JSConsoleClient::profileEnd):

  • inspector/JSConsoleClient.h:
  • inspector/JSGlobalObjectInspectorController.cpp:

(Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):

  • inspector/agents/InspectorProfilerAgent.cpp: Removed.
  • inspector/agents/InspectorProfilerAgent.h: Removed.
  • inspector/agents/JSGlobalObjectProfilerAgent.cpp: Removed.
  • inspector/agents/JSGlobalObjectProfilerAgent.h: Removed.
  • inspector/protocol/Profiler.json: Removed.

Source/WebCore:

It's not used by the frontend anymore.

No new tests, no behavior changed.

  • CMakeLists.txt:
  • ForwardingHeaders/inspector/agents/InspectorProfilerAgent.h: Removed.
  • WebCore.order:
  • WebCore.vcxproj/WebCore.vcxproj:
  • WebCore.vcxproj/WebCore.vcxproj.filters:
  • WebCore.xcodeproj/project.pbxproj:
  • inspector/InspectorAllInOne.cpp:
  • inspector/InspectorController.cpp:

(WebCore::InspectorController::InspectorController):

  • inspector/InspectorController.h:
  • inspector/InspectorInstrumentation.cpp:

(WebCore::InspectorInstrumentation::didCommitLoadImpl):

  • inspector/InstrumentingAgents.cpp:

(WebCore::InstrumentingAgents::InstrumentingAgents):
(WebCore::InstrumentingAgents::reset):

  • inspector/InstrumentingAgents.h:

(WebCore::InstrumentingAgents::inspectorProfilerAgent): Deleted.
(WebCore::InstrumentingAgents::setInspectorProfilerAgent): Deleted.

  • inspector/PageProfilerAgent.cpp: Removed.
  • inspector/PageProfilerAgent.h: Removed.
  • inspector/TimelineRecordFactory.cpp: Moved these builders to their only callsite.

(WebCore::buildInspectorObject):
(WebCore::buildProfileInspectorObject):
(WebCore::TimelineRecordFactory::appendProfile):

  • inspector/WebProfilerAgent.cpp: Removed.
  • inspector/WebProfilerAgent.h: Removed.
  • inspector/WorkerInspectorController.cpp:

(WebCore::WorkerInspectorController::WorkerInspectorController):

  • inspector/WorkerProfilerAgent.cpp: Removed.
  • inspector/WorkerProfilerAgent.h: Removed.
  • inspector/protocol/Timeline.json:

Source/WebInspectorUI:

The legacy profiler manager didn't do anything, and its views and models
have been superseded by new views and models based on the Timeline classes.

  • .eslintrc:
  • UserInterface/Base/Main.js:

(WebInspector.loaded):
(WebInspector.openURL): Remove profile URL handling code.

  • UserInterface/Controllers/LegacyProfileManager.js: Removed.
  • UserInterface/Main.html:
  • UserInterface/Protocol/ConsoleObserver.js:

(WebInspector.ConsoleObserver.prototype.messageAdded):

  • UserInterface/Protocol/InspectorFrontendAPI.js:

(InspectorFrontendAPI.isProfilingJavaScript): Deleted.
(InspectorFrontendAPI.startProfilingJavaScript): Deleted.
(InspectorFrontendAPI.stopProfilingJavaScript): Deleted.

  • UserInterface/Protocol/LegacyProfilerObserver.js: Removed.
  • UserInterface/Views/LegacyBottomUpProfileDataGridTree.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileObject.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileType.js: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileView.css: Removed.
  • UserInterface/Views/LegacyJavaScriptProfileView.js: Removed.
  • UserInterface/Views/LegacyProfileDataGridTree.js: Removed.
  • UserInterface/Views/LegacyProfileObject.js: Removed.
  • UserInterface/Views/LegacyProfileType.js: Removed.
  • UserInterface/Views/LegacyProfileView.css: Removed.
  • UserInterface/Views/LegacyProfileView.js: Removed.
  • UserInterface/Views/LegacyTopDownProfileDataGridTree.js: Removed.
Location:
trunk/Source
Files:
25 deleted
30 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/CMakeLists.txt

    r173164 r173198  
    301301    inspector/agents/InspectorConsoleAgent.cpp
    302302    inspector/agents/InspectorDebuggerAgent.cpp
    303     inspector/agents/InspectorProfilerAgent.cpp
    304303    inspector/agents/InspectorRuntimeAgent.cpp
    305304    inspector/agents/JSGlobalObjectConsoleAgent.cpp
    306305    inspector/agents/JSGlobalObjectDebuggerAgent.cpp
    307     inspector/agents/JSGlobalObjectProfilerAgent.cpp
    308306    inspector/agents/JSGlobalObjectRuntimeAgent.cpp
    309307
     
    957955    ${JAVASCRIPTCORE_DIR}/inspector/protocol/GenericTypes.json
    958956    ${JAVASCRIPTCORE_DIR}/inspector/protocol/InspectorDomain.json
    959     ${JAVASCRIPTCORE_DIR}/inspector/protocol/Profiler.json
    960957    ${JAVASCRIPTCORE_DIR}/inspector/protocol/Runtime.json
    961958)
  • trunk/Source/JavaScriptCore/ChangeLog

    r173188 r173198  
     12014-09-02  Brian J. Burg  <burg@cs.washington.edu>
     2
     3        Web Inspector: remove ProfilerAgent and legacy profiler files in the frontend
     4        https://bugs.webkit.org/show_bug.cgi?id=136462
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        It's not used by the frontend anymore.
     9
     10        * CMakeLists.txt:
     11        * DerivedSources.make:
     12        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj:
     13        * JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters:
     14        * JavaScriptCore.xcodeproj/project.pbxproj:
     15
     16        * inspector/JSConsoleClient.cpp:
     17        (Inspector::JSConsoleClient::JSConsoleClient): Stub out console.profile/profileEnd
     18        methods since they didn't work for JSContexts anyway.
     19        (Inspector::JSConsoleClient::profile):
     20        (Inspector::JSConsoleClient::profileEnd):
     21        * inspector/JSConsoleClient.h:
     22
     23        * inspector/JSGlobalObjectInspectorController.cpp:
     24        (Inspector::JSGlobalObjectInspectorController::JSGlobalObjectInspectorController):
     25        * inspector/agents/InspectorProfilerAgent.cpp: Removed.
     26        * inspector/agents/InspectorProfilerAgent.h: Removed.
     27        * inspector/agents/JSGlobalObjectProfilerAgent.cpp: Removed.
     28        * inspector/agents/JSGlobalObjectProfilerAgent.h: Removed.
     29        * inspector/protocol/Profiler.json: Removed.
     30
    1312014-09-02  Andreas Kling  <akling@apple.com>
    232
  • trunk/Source/JavaScriptCore/DerivedSources.make

    r172930 r173198  
    118118    $(JavaScriptCore)/inspector/protocol/GenericTypes.json \
    119119    $(JavaScriptCore)/inspector/protocol/InspectorDomain.json \
    120     $(JavaScriptCore)/inspector/protocol/Profiler.json \
    121120    $(JavaScriptCore)/inspector/protocol/Runtime.json \
    122121#
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj

    r173072 r173198  
    575575    <ClCompile Include="..\inspector\agents\InspectorConsoleAgent.cpp" />
    576576    <ClCompile Include="..\inspector\agents\InspectorDebuggerAgent.cpp" />
    577     <ClCompile Include="..\inspector\agents\InspectorProfilerAgent.cpp" />
    578577    <ClCompile Include="..\inspector\agents\InspectorRuntimeAgent.cpp" />
    579578    <ClCompile Include="..\interpreter\AbstractPC.cpp" />
     
    12791278    <ClInclude Include="..\inspector\agents\InspectorConsoleAgent.h" />
    12801279    <ClInclude Include="..\inspector\agents\InspectorDebuggerAgent.h" />
    1281     <ClInclude Include="..\inspector\agents\InspectorProfilerAgent.h" />
    12821280    <ClInclude Include="..\inspector\agents\InspectorRuntimeAgent.h" />
    12831281    <ClInclude Include="..\interpreter\AbstractPC.h" />
  • trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters

    r172930 r173198  
    343343      <Filter>inspector</Filter>
    344344    </ClCompile>
    345     <ClCompile Include="..\inspector\agents\InspectorProfilerAgent.cpp">
    346       <Filter>inspector</Filter>
    347     </ClCompile>
    348345    <ClCompile Include="..\inspector\agents\InspectorRuntimeAgent.cpp">
    349346      <Filter>inspector</Filter>
     
    21912188    </ClInclude>
    21922189    <ClInclude Include="..\inspector\agents\InspectorDebuggerAgent.h">
    2193       <Filter>inspector</Filter>
    2194     </ClInclude>
    2195     <ClInclude Include="..\inspector\agents\InspectorProfilerAgent.h">
    21962190      <Filter>inspector</Filter>
    21972191    </ClInclude>
  • trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj

    r173072 r173198  
    834834                1A28D4A8177B71C80007FA3C /* JSStringRefPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A28D4A7177B71C80007FA3C /* JSStringRefPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; };
    835835                1ACF7377171CA6FB00C9BB1E /* Weak.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1ACF7376171CA6FB00C9BB1E /* Weak.cpp */; };
    836                 1CAA9A1E18F4997F000A369D /* InspectorProfilerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CAA9A1C18F4997F000A369D /* InspectorProfilerAgent.cpp */; };
    837                 1CAA9A1F18F4997F000A369D /* InspectorProfilerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CAA9A1D18F4997F000A369D /* InspectorProfilerAgent.h */; settings = {ATTRIBUTES = (Private, ); }; };
    838                 1CAA9A2218F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CAA9A2018F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp */; };
    839                 1CAA9A2318F4A220000A369D /* JSGlobalObjectProfilerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CAA9A2118F4A220000A369D /* JSGlobalObjectProfilerAgent.h */; };
    840836                2600B5A6152BAAA70091EE5F /* JSStringJoiner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2600B5A4152BAAA70091EE5F /* JSStringJoiner.cpp */; };
    841837                2600B5A7152BAAA70091EE5F /* JSStringJoiner.h in Headers */ = {isa = PBXBuildFile; fileRef = 2600B5A5152BAAA70091EE5F /* JSStringJoiner.h */; };
     
    27202716                1CAA8B4A0D32C39A0041BCFF /* JavaScript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavaScript.h; sourceTree = "<group>"; };
    27212717                1CAA8B4B0D32C39A0041BCFF /* JavaScriptCore.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavaScriptCore.h; sourceTree = "<group>"; };
    2722                 1CAA9A1C18F4997F000A369D /* InspectorProfilerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = InspectorProfilerAgent.cpp; sourceTree = "<group>"; };
    2723                 1CAA9A1D18F4997F000A369D /* InspectorProfilerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = InspectorProfilerAgent.h; sourceTree = "<group>"; };
    2724                 1CAA9A2018F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSGlobalObjectProfilerAgent.cpp; sourceTree = "<group>"; };
    2725                 1CAA9A2118F4A220000A369D /* JSGlobalObjectProfilerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSGlobalObjectProfilerAgent.h; sourceTree = "<group>"; };
    27262718                2600B5A4152BAAA70091EE5F /* JSStringJoiner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSStringJoiner.cpp; sourceTree = "<group>"; };
    27272719                2600B5A5152BAAA70091EE5F /* JSStringJoiner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSStringJoiner.h; sourceTree = "<group>"; };
     
    53215313                                A57D23E31890CEBF0031C7FA /* InspectorDebuggerAgent.cpp */,
    53225314                                A57D23E41890CEBF0031C7FA /* InspectorDebuggerAgent.h */,
    5323                                 1CAA9A1C18F4997F000A369D /* InspectorProfilerAgent.cpp */,
    5324                                 1CAA9A1D18F4997F000A369D /* InspectorProfilerAgent.h */,
    53255315                                A50E4B5D18809DD50068A46D /* InspectorRuntimeAgent.cpp */,
    53265316                                A50E4B5E18809DD50068A46D /* InspectorRuntimeAgent.h */,
     
    53295319                                A57D23E71891B0770031C7FA /* JSGlobalObjectDebuggerAgent.cpp */,
    53305320                                A57D23E81891B0770031C7FA /* JSGlobalObjectDebuggerAgent.h */,
    5331                                 1CAA9A2018F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp */,
    5332                                 1CAA9A2118F4A220000A369D /* JSGlobalObjectProfilerAgent.h */,
    53335321                                A50E4B5F18809DD50068A46D /* JSGlobalObjectRuntimeAgent.cpp */,
    53345322                                A50E4B6018809DD50068A46D /* JSGlobalObjectRuntimeAgent.h */,
     
    62106198                                BC18C4170E16F5CD00B34460 /* JSArray.h in Headers */,
    62116199                                0F2B66E317B6B5AB00A7AE3F /* JSArrayBuffer.h in Headers */,
    6212                                 1CAA9A2318F4A220000A369D /* JSGlobalObjectProfilerAgent.h in Headers */,
    62136200                                0F2B66E517B6B5AB00A7AE3F /* JSArrayBufferConstructor.h in Headers */,
    62146201                                0F2B66E717B6B5AB00A7AE3F /* JSArrayBufferPrototype.h in Headers */,
     
    62386225                                0F7576D318E1FEE9002EF4CD /* AccessorCallJITStubRoutine.h in Headers */,
    62396226                                0F2B66EC17B6B5AB00A7AE3F /* JSDataView.h in Headers */,
    6240                                 1CAA9A1F18F4997F000A369D /* InspectorProfilerAgent.h in Headers */,
    62416227                                0F2B66EE17B6B5AB00A7AE3F /* JSDataViewPrototype.h in Headers */,
    62426228                                978801411471AD920041B016 /* JSDateMath.h in Headers */,
     
    73997385                                0F6B1CC31862C47800845D97 /* FTLRegisterAtOffset.cpp in Sources */,
    74007386                                0FCEFAAB1804C13E00472CE4 /* FTLSaveRestore.cpp in Sources */,
    7401                                 1CAA9A2218F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp in Sources */,
    74027387                                0F25F1B1181635F300522F39 /* FTLSlowPathCall.cpp in Sources */,
    74037388                                0F25F1B3181635F300522F39 /* FTLSlowPathCallKey.cpp in Sources */,
     
    76237608                                0F13912916771C33009CCB07 /* ProfilerBytecodeSequence.cpp in Sources */,
    76247609                                0FF729AF166AD35C000F5BA3 /* ProfilerCompilation.cpp in Sources */,
    7625                                 1CAA9A1E18F4997F000A369D /* InspectorProfilerAgent.cpp in Sources */,
    76267610                                0FF729B0166AD35C000F5BA3 /* ProfilerCompilationKind.cpp in Sources */,
    76277611                                0FF729B1166AD35C000F5BA3 /* ProfilerCompiledBytecode.cpp in Sources */,
  • trunk/Source/JavaScriptCore/inspector/JSConsoleClient.cpp

    r167530 r173198  
    3030
    3131#include "InspectorConsoleAgent.h"
    32 #include "InspectorProfilerAgent.h"
    3332#include "ScriptArguments.h"
    3433#include "ScriptCallStack.h"
     
    6766}
    6867
    69 JSConsoleClient::JSConsoleClient(InspectorConsoleAgent* consoleAgent, InspectorProfilerAgent* profilerAgent)
     68JSConsoleClient::JSConsoleClient(InspectorConsoleAgent* consoleAgent)
    7069    : ConsoleClient()
    7170    , m_consoleAgent(consoleAgent)
    72     , m_profilerAgent(profilerAgent)
    7371{
    7472    static std::once_flag initializeLogging;
     
    9593}
    9694
    97 void JSConsoleClient::profile(JSC::ExecState* exec, const String& title)
     95void JSConsoleClient::profile(JSC::ExecState*, const String&)
    9896{
    99     if (!m_profilerAgent->enabled())
    100         return;
    101 
    102     String resolvedTitle = m_profilerAgent->startProfiling(title);
    103 
    104     RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(exec, 1));
    105     m_consoleAgent->addMessageToConsole(MessageSource::ConsoleAPI, MessageType::Profile, MessageLevel::Debug, resolvedTitle, callStack);
     97    // FIXME: support |console.profile| for JSContexts. <https://webkit.org/b/136466>
    10698}
    10799
    108 void JSConsoleClient::profileEnd(JSC::ExecState* exec, const String& title)
     100void JSConsoleClient::profileEnd(JSC::ExecState*, const String&)
    109101{
    110     if (!m_profilerAgent->enabled())
    111         return;
    112 
    113     RefPtr<JSC::Profile> profile = m_profilerAgent->stopProfiling(title);
    114     if (!profile)
    115         return;
    116 
    117     RefPtr<ScriptCallStack> callStack(createScriptCallStackForConsole(exec, 1));
    118     String message = makeString(profile->title(), '#', String::number(profile->uid()));
    119     m_consoleAgent->addMessageToConsole(MessageSource::ConsoleAPI, MessageType::Profile, MessageLevel::Debug, message, callStack);
     102    // FIXME: support |console.profile| for JSContexts. <https://webkit.org/b/136466>
    120103}
    121104
  • trunk/Source/JavaScriptCore/inspector/JSConsoleClient.h

    r167811 r173198  
    3232
    3333class InspectorConsoleAgent;
    34 class InspectorProfilerAgent;
    3534
    3635class JSConsoleClient final : public JSC::ConsoleClient {
    3736    WTF_MAKE_FAST_ALLOCATED;
    3837public:
    39     explicit JSConsoleClient(InspectorConsoleAgent*, InspectorProfilerAgent*);
     38    explicit JSConsoleClient(InspectorConsoleAgent*);
    4039    virtual ~JSConsoleClient() { }
    4140
     
    5857
    5958    InspectorConsoleAgent* m_consoleAgent;
    60     InspectorProfilerAgent* m_profilerAgent;
    6159};
    6260
  • trunk/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp

    r170774 r173198  
    4040#include "JSGlobalObjectConsoleAgent.h"
    4141#include "JSGlobalObjectDebuggerAgent.h"
    42 #include "JSGlobalObjectProfilerAgent.h"
    4342#include "JSGlobalObjectRuntimeAgent.h"
    4443#include "ScriptArguments.h"
     
    6261    auto consoleAgent = std::make_unique<JSGlobalObjectConsoleAgent>(m_injectedScriptManager.get());
    6362    auto debuggerAgent = std::make_unique<JSGlobalObjectDebuggerAgent>(m_injectedScriptManager.get(), m_globalObject, consoleAgent.get());
    64     auto profilerAgent = std::make_unique<JSGlobalObjectProfilerAgent>(m_globalObject);
    6563
    6664    m_consoleAgent = consoleAgent.get();
    67     m_consoleClient = std::make_unique<JSConsoleClient>(m_consoleAgent, profilerAgent.get());
     65    m_consoleClient = std::make_unique<JSConsoleClient>(m_consoleAgent);
    6866
    6967    runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
    70     profilerAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
    7168
    7269    m_agents.append(std::make_unique<InspectorAgent>());
  • trunk/Source/WebCore/CMakeLists.txt

    r173155 r173198  
    18071807    inspector/PageConsoleAgent.cpp
    18081808    inspector/PageDebuggerAgent.cpp
    1809     inspector/PageProfilerAgent.cpp
    18101809    inspector/PageRuntimeAgent.cpp
    18111810    inspector/PageScriptDebugServer.cpp
     
    18151814    inspector/WebInjectedScriptHost.cpp
    18161815    inspector/WebInjectedScriptManager.cpp
    1817     inspector/WebProfilerAgent.cpp
    18181816    inspector/WorkerConsoleAgent.cpp
    18191817    inspector/WorkerDebuggerAgent.cpp
    18201818    inspector/WorkerInspectorController.cpp
    1821     inspector/WorkerProfilerAgent.cpp
    18221819    inspector/WorkerRuntimeAgent.cpp
    18231820
  • trunk/Source/WebCore/ChangeLog

    r173197 r173198  
     12014-09-02  Brian J. Burg  <burg@cs.washington.edu>
     2
     3        Web Inspector: remove ProfilerAgent and legacy profiler files in the frontend
     4        https://bugs.webkit.org/show_bug.cgi?id=136462
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        It's not used by the frontend anymore.
     9
     10        No new tests, no behavior changed.
     11
     12        * CMakeLists.txt:
     13        * ForwardingHeaders/inspector/agents/InspectorProfilerAgent.h: Removed.
     14        * WebCore.order:
     15        * WebCore.vcxproj/WebCore.vcxproj:
     16        * WebCore.vcxproj/WebCore.vcxproj.filters:
     17        * WebCore.xcodeproj/project.pbxproj:
     18        * inspector/InspectorAllInOne.cpp:
     19        * inspector/InspectorController.cpp:
     20        (WebCore::InspectorController::InspectorController):
     21        * inspector/InspectorController.h:
     22        * inspector/InspectorInstrumentation.cpp:
     23        (WebCore::InspectorInstrumentation::didCommitLoadImpl):
     24        * inspector/InstrumentingAgents.cpp:
     25        (WebCore::InstrumentingAgents::InstrumentingAgents):
     26        (WebCore::InstrumentingAgents::reset):
     27        * inspector/InstrumentingAgents.h:
     28        (WebCore::InstrumentingAgents::inspectorProfilerAgent): Deleted.
     29        (WebCore::InstrumentingAgents::setInspectorProfilerAgent): Deleted.
     30        * inspector/PageProfilerAgent.cpp: Removed.
     31        * inspector/PageProfilerAgent.h: Removed.
     32        * inspector/TimelineRecordFactory.cpp: Moved these builders to their only callsite.
     33        (WebCore::buildInspectorObject):
     34        (WebCore::buildProfileInspectorObject):
     35        (WebCore::TimelineRecordFactory::appendProfile):
     36        * inspector/WebProfilerAgent.cpp: Removed.
     37        * inspector/WebProfilerAgent.h: Removed.
     38        * inspector/WorkerInspectorController.cpp:
     39        (WebCore::WorkerInspectorController::WorkerInspectorController):
     40        * inspector/WorkerProfilerAgent.cpp: Removed.
     41        * inspector/WorkerProfilerAgent.h: Removed.
     42        * inspector/protocol/Timeline.json:
     43
    1442014-09-02  Jer Noble  <jer.noble@apple.com>
    245
  • trunk/Source/WebCore/WebCore.order

    r172975 r173198  
    731731__ZN7WebCore23InspectorCompositeState21inspectorStateUpdatedEv
    732732__ZN7WebCore25InspectorDOMDebuggerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_17InspectorDOMAgentEPNS_22InspectorDebuggerAgentEPNS_14InspectorAgentE
    733 __ZN7WebCore22InspectorProfilerAgent6createEPNS_19InstrumentingAgentsEPNS_21InspectorConsoleAgentEPNS_4PageEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE
    734 __ZN7WebCore22InspectorProfilerAgentC2EPNS_19InstrumentingAgentsEPNS_21InspectorConsoleAgentEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE
    735 __ZN7WebCore26InspectorHeapProfilerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE
    736733__ZN7WebCore20InspectorWorkerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateE
    737734__ZN7WebCore20InspectorCanvasAgentC1EPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_18InspectorPageAgentEPNS_21InjectedScriptManagerE
     
    65006497__ZN7WebCore22InspectorDebuggerAgentD2Ev
    65016498__ZN7WebCore25InspectorDOMDebuggerAgentD0Ev
    6502 __ZN7WebCore17PageProfilerAgentD0Ev
    6503 __ZN7WebCore22InspectorProfilerAgentD2Ev
    6504 __ZN7WebCore26InspectorHeapProfilerAgentD0Ev
    6505 __ZN7WebCore26InspectorHeapProfilerAgentD2Ev
    65066499__ZN7WebCore20InspectorWorkerAgentD0Ev
    65076500__ZN7WebCore20InspectorWorkerAgentD2Ev
     
    2099820991__ZTVN7WebCore12_GLOBAL__N_114CounterVisitorE
    2099920992__ZTVN7WebCore18InspectorPageAgentE
    21000 __ZTVN7WebCore22InspectorProfilerAgentE
    2100120993__ZTVN7WebCore22InspectorResourceAgentE
    2100220994__ZTVN7WebCore21InspectorRuntimeAgentE
     
    2438424376__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore23InspectorFrontendClientEEE
    2438524377__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore26InspectorBackendDispatcherEEE
    24386 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore22InspectorProfilerAgentEEE
    2438724378__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore22InspectorDebuggerAgentEEE
    2438824379__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore18InspectorPageAgentEEE
     
    2445524446__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore21InspectorConsoleAgentEEE
    2445624447__ZTVN7WebCore8Protocol5ArrayINS0_8Profiler13ProfileHeaderEEE
    24457 __ZTVN7WebCore18InspectorBaseAgentINS_22InspectorProfilerAgentEEE
    24458 __ZTVN7WebCore19WorkerProfilerAgentE
    24459 __ZTVN7WebCore17PageProfilerAgentE
    2446024448__ZTVN7WebCore18InspectorBaseAgentINS_22InspectorResourceAgentEEE
    2446124449__ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore8Protocol7Network9InitiatorEEE
     
    2646126449__ZN7WebCore18WebCoreMemoryTypes24InspectorDOMStorageAgentE
    2646226450__ZN7WebCore18WebCoreMemoryTypes16InspectorOverlayE
    26463 __ZN7WebCore18WebCoreMemoryTypes22InspectorProfilerAgentE
    2646426451__ZN7WebCore18WebCoreMemoryTypes22InspectorDebuggerAgentE
    2646526452__ZN7WebCore18WebCoreMemoryTypes22InspectorResourceAgentE
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj

    r172930 r173198  
    1811018110      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    1811118111    </ClCompile>
    18112     <ClCompile Include="..\inspector\PageProfilerAgent.cpp">
    18113       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    18114       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
    18115       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
    18116       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
    18117       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
    18118       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    18119     </ClCompile>
    1812018112    <ClCompile Include="..\inspector\PageRuntimeAgent.cpp">
    1812118113      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
     
    1815818150      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    1815918151    </ClCompile>
    18160     <ClCompile Include="..\inspector\WebProfilerAgent.cpp">
    18161       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    18162       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
    18163       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
    18164       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
    18165       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
    18166       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    18167     </ClCompile>
    1816818152    <ClCompile Include="..\inspector\WorkerConsoleAgent.cpp">
    1816918153      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
     
    1819918183    </ClCompile>
    1820018184    <ClCompile Include="..\inspector\WorkerInspectorController.cpp">
    18201       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    18202       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
    18203       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|Win32'">true</ExcludedFromBuild>
    18204       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release_WinCairo|x64'">true</ExcludedFromBuild>
    18205       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|Win32'">true</ExcludedFromBuild>
    18206       <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild>
    18207     </ClCompile>
    18208     <ClCompile Include="..\inspector\WorkerProfilerAgent.cpp">
    1820918185      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild>
    1821018186      <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild>
     
    2130421280    <ClInclude Include="..\inspector\PageConsoleAgent.h" />
    2130521281    <ClInclude Include="..\inspector\PageDebuggerAgent.h" />
    21306     <ClInclude Include="..\inspector\PageProfilerAgent.h" />
    2130721282    <ClInclude Include="..\inspector\PageRuntimeAgent.h" />
    2130821283    <ClInclude Include="..\inspector\PageScriptDebugServer.h" />
     
    2131021285    <ClInclude Include="..\inspector\WebConsoleAgent.h" />
    2131121286    <ClInclude Include="..\inspector\WebDebuggerAgent.h" />
    21312     <ClInclude Include="..\inspector\WebProfilerAgent.h" />
    2131321287    <ClInclude Include="..\inspector\WebInjectedScriptHost.h" />
    2131421288    <ClInclude Include="..\inspector\WebInjectedScriptManager.h" />
     
    2131621290    <ClInclude Include="..\inspector\WorkerDebuggerAgent.h" />
    2131721291    <ClInclude Include="..\inspector\WorkerInspectorController.h" />
    21318     <ClInclude Include="..\inspector\WorkerProfilerAgent.h" />
    2131921292    <ClInclude Include="..\inspector\WorkerRuntimeAgent.h" />
    2132021293    <ClInclude Include="..\mathml\MathMLElement.h" />
  • trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters

    r172930 r173198  
    48374837      <Filter>inspector</Filter>
    48384838    </ClCompile>
    4839     <ClCompile Include="..\inspector\PageProfilerAgent.cpp">
    4840       <Filter>inspector</Filter>
    4841     </ClCompile>
    48424839    <ClCompile Include="..\inspector\PageRuntimeAgent.cpp">
    48434840      <Filter>inspector</Filter>
     
    48554852      <Filter>inspector</Filter>
    48564853    </ClCompile>
    4857     <ClCompile Include="..\inspector\WebProfilerAgent.cpp">
    4858       <Filter>inspector</Filter>
    4859     </ClCompile>
    48604854    <ClCompile Include="..\inspector\WebInjectedScriptHost.cpp">
    48614855      <Filter>inspector</Filter>
     
    48714865    </ClCompile>
    48724866    <ClCompile Include="..\inspector\WorkerInspectorController.cpp">
    4873       <Filter>inspector</Filter>
    4874     </ClCompile>
    4875     <ClCompile Include="..\inspector\WorkerProfilerAgent.cpp">
    48764867      <Filter>inspector</Filter>
    48774868    </ClCompile>
     
    1256812559      <Filter>inspector</Filter>
    1256912560    </ClInclude>
    12570     <ClInclude Include="..\inspector\PageProfilerAgent.h">
    12571       <Filter>inspector</Filter>
    12572     </ClInclude>
    1257312561    <ClInclude Include="..\inspector\PageRuntimeAgent.h">
    1257412562      <Filter>inspector</Filter>
     
    1258612574      <Filter>inspector</Filter>
    1258712575    </ClInclude>
    12588     <ClInclude Include="..\inspector\WebProfilerAgent.h">
    12589       <Filter>inspector</Filter>
    12590     </ClInclude>
    1259112576    <ClInclude Include="..\inspector\WebInjectedScriptHost.h">
    1259212577      <Filter>inspector</Filter>
     
    1260212587    </ClInclude>
    1260312588    <ClInclude Include="..\inspector\WorkerInspectorController.h">
    12604       <Filter>inspector</Filter>
    12605     </ClInclude>
    12606     <ClInclude Include="..\inspector\WorkerProfilerAgent.h">
    1260712589      <Filter>inspector</Filter>
    1260812590    </ClInclude>
  • trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj

    r173197 r173198  
    952952                1CB4214C0AF2B2CA0085AD91 /* DOMHTMLElementInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 85E711580AC5D5340053270F /* DOMHTMLElementInternal.h */; };
    953953                1CB4214D0AF2B2CA0085AD91 /* DOMRangeInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 8538F05A0AD722F1006A81D1 /* DOMRangeInternal.h */; };
    954                 1CC6B06C18F8526B0007ECCD /* WebProfilerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CC6B06A18F8526B0007ECCD /* WebProfilerAgent.cpp */; };
    955                 1CC6B06D18F8526B0007ECCD /* WebProfilerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CC6B06B18F8526B0007ECCD /* WebProfilerAgent.h */; };
    956                 1CC6B07018F8687A0007ECCD /* PageProfilerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CC6B06E18F8687A0007ECCD /* PageProfilerAgent.cpp */; };
    957                 1CC6B07118F8687A0007ECCD /* PageProfilerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CC6B06F18F8687A0007ECCD /* PageProfilerAgent.h */; };
    958                 1CC6B07418F893A20007ECCD /* WorkerProfilerAgent.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1CC6B07218F893A20007ECCD /* WorkerProfilerAgent.cpp */; };
    959                 1CC6B07518F893A20007ECCD /* WorkerProfilerAgent.h in Headers */ = {isa = PBXBuildFile; fileRef = 1CC6B07318F893A20007ECCD /* WorkerProfilerAgent.h */; };
    960954                1CCA732210ADD44A00FD440D /* DOMHTMLInputElementPrivate.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 1CCA732110ADD43E00FD440D /* DOMHTMLInputElementPrivate.h */; };
    961955                1CE83AC30ADAFFD7009354F6 /* DeleteButtonController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C4C8EFF0AD85D87009475CE /* DeleteButtonController.cpp */; };
     
    79067900                1CAF347F0A6C405200ABE06E /* WebScriptObject.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebScriptObject.mm; sourceTree = "<group>"; };
    79077901                1CAF34800A6C405200ABE06E /* WebScriptObjectPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebScriptObjectPrivate.h; sourceTree = "<group>"; };
    7908                 1CC6B06A18F8526B0007ECCD /* WebProfilerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WebProfilerAgent.cpp; sourceTree = "<group>"; };
    7909                 1CC6B06B18F8526B0007ECCD /* WebProfilerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebProfilerAgent.h; sourceTree = "<group>"; };
    7910                 1CC6B06E18F8687A0007ECCD /* PageProfilerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = PageProfilerAgent.cpp; sourceTree = "<group>"; };
    7911                 1CC6B06F18F8687A0007ECCD /* PageProfilerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PageProfilerAgent.h; sourceTree = "<group>"; };
    7912                 1CC6B07218F893A20007ECCD /* WorkerProfilerAgent.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = WorkerProfilerAgent.cpp; sourceTree = "<group>"; };
    7913                 1CC6B07318F893A20007ECCD /* WorkerProfilerAgent.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WorkerProfilerAgent.h; sourceTree = "<group>"; };
    79147902                1CCA732110ADD43E00FD440D /* DOMHTMLInputElementPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLInputElementPrivate.h; sourceTree = "<group>"; };
    79157903                1CD0B6200AABDB5000D0A3FF /* PublicDOMInterfaces.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PublicDOMInterfaces.h; sourceTree = "<group>"; };
     
    1524215230                                F34742DA134362F000531BC2 /* PageDebuggerAgent.cpp */,
    1524315231                                F34742DB134362F000531BC2 /* PageDebuggerAgent.h */,
    15244                                 1CC6B06E18F8687A0007ECCD /* PageProfilerAgent.cpp */,
    15245                                 1CC6B06F18F8687A0007ECCD /* PageProfilerAgent.h */,
    1524615232                                F382088C147D35F90010BC06 /* PageRuntimeAgent.cpp */,
    1524715233                                F382088D147D35F90010BC06 /* PageRuntimeAgent.h */,
     
    1526015246                                A584FE2D1864CB8400843B10 /* WebInjectedScriptManager.cpp */,
    1526115247                                A584FE2E1864CB8400843B10 /* WebInjectedScriptManager.h */,
    15262                                 1CC6B06A18F8526B0007ECCD /* WebProfilerAgent.cpp */,
    15263                                 1CC6B06B18F8526B0007ECCD /* WebProfilerAgent.h */,
    1526415248                                F382088E147D35F90010BC06 /* WorkerConsoleAgent.cpp */,
    1526515249                                F382088F147D35F90010BC06 /* WorkerConsoleAgent.h */,
     
    1526815252                                F36E07A21358A8BE00AACBC9 /* WorkerInspectorController.cpp */,
    1526915253                                F36E07A31358A8BE00AACBC9 /* WorkerInspectorController.h */,
    15270                                 1CC6B07218F893A20007ECCD /* WorkerProfilerAgent.cpp */,
    15271                                 1CC6B07318F893A20007ECCD /* WorkerProfilerAgent.h */,
    1527215254                                F3820890147D35F90010BC06 /* WorkerRuntimeAgent.cpp */,
    1527315255                                F3820891147D35F90010BC06 /* WorkerRuntimeAgent.h */,
     
    2420024182                                26C17A3E1491D2D400D12BA2 /* FileSystemIOS.h in Headers */,
    2420124183                                976D6C8E122B8A3D001FD1F7 /* FileThread.h in Headers */,
    24202                                 1CC6B06D18F8526B0007ECCD /* WebProfilerAgent.h in Headers */,
    2420324184                                BC5EB69F0E81DAEB00B25965 /* FillLayer.h in Headers */,
    2420424185                                845E72F80FD261EE00A87D79 /* Filter.h in Headers */,
     
    2595525936                                C5102D940FD9AA2D00FAFF04 /* StorageSyncManager.h in Headers */,
    2595625937                                511F231A0DC160DA004F0032 /* StorageThread.h in Headers */,
    25957                                 1CC6B07118F8687A0007ECCD /* PageProfilerAgent.h in Headers */,
    2595825938                                3AB02D2A12D4F91600FBB694 /* StorageTracker.h in Headers */,
    2595925939                                3AC3680012EF7A09006A3D6F /* StorageTrackerClient.h in Headers */,
     
    2631826298                                CDA07FC218E0A22B004699FA /* SystemSleepListenerMac.h in Headers */,
    2631926299                                93F198F608245E59001E9ABC /* TextResourceDecoder.h in Headers */,
    26320                                 1CC6B07518F893A20007ECCD /* WorkerProfilerAgent.h in Headers */,
    2632126300                                A824B4650E2EF2EA0081A7B7 /* TextRun.h in Headers */,
    2632226301                                448B1B7A0F3A2F9B0047A9E2 /* TextSizeAdjustment.h in Headers */,
     
    2761327592                                F55B3DBB1251F12D003EF269 /* EmailInputType.cpp in Sources */,
    2761427593                                F52AD5E41534245F0059FBE6 /* EmptyClients.cpp in Sources */,
    27615                                 1CC6B07018F8687A0007ECCD /* PageProfilerAgent.cpp in Sources */,
    2761627594                                A8EA7EC10A1945D000A8EF5F /* EntityReference.cpp in Sources */,
    2761727595                                FD31609212B026F700C1A359 /* EqualPowerPanner.cpp in Sources */,
     
    2859328571                                B2FA3DE00AB75A6F000E5AC4 /* JSSVGPatternElement.cpp in Sources */,
    2859428572                                8542A7960AE5C94200DF58DF /* JSSVGPoint.cpp in Sources */,
    28595                                 1CC6B06C18F8526B0007ECCD /* WebProfilerAgent.cpp in Sources */,
    2859628573                                B2FA3DE20AB75A6F000E5AC4 /* JSSVGPointList.cpp in Sources */,
    2859728574                                B2FA3DE50AB75A6F000E5AC4 /* JSSVGPolygonElement.cpp in Sources */,
     
    2894928926                                447958051643B4B2001E0A7F /* ParsedContentType.cpp in Sources */,
    2895028927                                F55B3DC91251F12D003EF269 /* PasswordInputType.cpp in Sources */,
    28951                                 1CC6B07418F893A20007ECCD /* WorkerProfilerAgent.cpp in Sources */,
    2895228928                                E453901E0EAFCACA003695C8 /* PasteboardIOS.mm in Sources */,
    2895328929                                4B2709830AF2E5E00065127F /* PasteboardMac.mm in Sources */,
  • trunk/Source/WebCore/inspector/InspectorAllInOne.cpp

    r167530 r173198  
    5858#include "PageConsoleAgent.cpp"
    5959#include "PageDebuggerAgent.cpp"
    60 #include "PageProfilerAgent.cpp"
    6160#include "PageRuntimeAgent.cpp"
    6261#include "PageScriptDebugServer.cpp"
     
    6665#include "WebInjectedScriptHost.cpp"
    6766#include "WebInjectedScriptManager.cpp"
    68 #include "WebProfilerAgent.cpp"
    6967#include "WorkerConsoleAgent.cpp"
    7068#include "WorkerDebuggerAgent.cpp"
    7169#include "WorkerInspectorController.cpp"
    72 #include "WorkerProfilerAgent.cpp"
    7370#include "WorkerRuntimeAgent.cpp"
  • trunk/Source/WebCore/inspector/InspectorController.cpp

    r171866 r173198  
    6565#include "PageConsoleAgent.h"
    6666#include "PageDebuggerAgent.h"
    67 #include "PageProfilerAgent.h"
    6867#include "PageRuntimeAgent.h"
    6968#include "PageScriptDebugServer.h"
     
    155154    m_agents.append(WTF::move(domDebuggerAgentPtr));
    156155
    157     auto profilerAgentPtr = std::make_unique<PageProfilerAgent>(m_instrumentingAgents.get(), &page);
    158     m_profilerAgent = profilerAgentPtr.get();
    159     m_agents.append(WTF::move(profilerAgentPtr));
    160 
    161156    m_agents.append(std::make_unique<InspectorApplicationCacheAgent>(m_instrumentingAgents.get(), pageAgent));
    162157    m_agents.append(std::make_unique<InspectorWorkerAgent>(m_instrumentingAgents.get()));
     
    177172    runtimeAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer());
    178173    m_timelineAgent->setPageScriptDebugServer(&m_debuggerAgent->scriptDebugServer());
    179     m_profilerAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer());
    180174}
    181175
  • trunk/Source/WebCore/inspector/InspectorController.h

    r172862 r173198  
    4848class InspectorBackendDispatcher;
    4949class InspectorFrontendChannel;
    50 class InspectorProfilerAgent;
    5150class InspectorObject;
    5251}
     
    145144    PageDebuggerAgent* m_debuggerAgent;
    146145    InspectorDOMDebuggerAgent* m_domDebuggerAgent;
    147     Inspector::InspectorProfilerAgent* m_profilerAgent;
    148146    InspectorTimelineAgent* m_timelineAgent;
    149147
  • trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp

    r172864 r173198  
    7171#include <inspector/ScriptCallStack.h>
    7272#include <inspector/agents/InspectorDebuggerAgent.h>
    73 #include <inspector/agents/InspectorProfilerAgent.h>
    7473#include <profiler/Profile.h>
    7574#include <runtime/ConsoleTypes.h>
     
    769768        if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent())
    770769            resourceAgent->mainFrameNavigated(loader);
    771 
    772         if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorProfilerAgent())
    773             profilerAgent->reset();
    774770
    775771        if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent())
  • trunk/Source/WebCore/inspector/InstrumentingAgents.cpp

    r171195 r173198  
    6969    , m_pageDebuggerAgent(nullptr)
    7070    , m_inspectorDOMDebuggerAgent(nullptr)
    71     , m_inspectorProfilerAgent(nullptr)
    7271    , m_inspectorWorkerAgent(nullptr)
    7372{
     
    9897    m_pageDebuggerAgent = nullptr;
    9998    m_inspectorDOMDebuggerAgent = nullptr;
    100     m_inspectorProfilerAgent = nullptr;
    10199    m_inspectorWorkerAgent = nullptr;
    102100}
  • trunk/Source/WebCore/inspector/InstrumentingAgents.h

    r172849 r173198  
    4242class InspectorAgent;
    4343class InspectorDebuggerAgent;
    44 class InspectorProfilerAgent;
    4544}
    4645
     
    134133    void setInspectorDOMDebuggerAgent(InspectorDOMDebuggerAgent* agent) { m_inspectorDOMDebuggerAgent = agent; }
    135134
    136     Inspector::InspectorProfilerAgent* inspectorProfilerAgent() const { return m_inspectorProfilerAgent; }
    137     void setInspectorProfilerAgent(Inspector::InspectorProfilerAgent* agent) { m_inspectorProfilerAgent = agent; }
    138 
    139135    InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorkerAgent; }
    140136    void setInspectorWorkerAgent(InspectorWorkerAgent* agent) { m_inspectorWorkerAgent = agent; }
     
    170166    PageDebuggerAgent* m_pageDebuggerAgent;
    171167    InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent;
    172     Inspector::InspectorProfilerAgent* m_inspectorProfilerAgent;
    173168    InspectorWorkerAgent* m_inspectorWorkerAgent;
    174169};
  • trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp

    r171195 r173198  
    3838#include "Event.h"
    3939#include "FloatQuad.h"
     40#include "InspectorWebProtocolTypes.h"
    4041#include "IntRect.h"
    4142#include "JSMainThreadExecState.h"
     
    4344#include "ResourceRequest.h"
    4445#include "ResourceResponse.h"
    45 #include <inspector/InspectorValues.h>
    4646#include <inspector/ScriptBreakpoint.h>
    4747#include <inspector/ScriptCallStack.h>
    4848#include <inspector/ScriptCallStackFactory.h>
    49 #include <inspector/agents/InspectorProfilerAgent.h>
    5049#include <profiler/Profile.h>
    5150#include <wtf/CurrentTime.h>
     
    272271}
    273272
     273static PassRefPtr<Protocol::Timeline::CPUProfileNodeCall> buildInspectorObject(const JSC::ProfileNode::Call& call)
     274{
     275    RefPtr<Protocol::Timeline::CPUProfileNodeCall> result = Protocol::Timeline::CPUProfileNodeCall::create()
     276        .setStartTime(call.startTime())
     277        .setTotalTime(call.totalTime());
     278    return result.release();
     279}
     280
     281static PassRefPtr<Protocol::Timeline::CPUProfileNode> buildInspectorObject(const JSC::ProfileNode* node)
     282{
     283    RefPtr<Protocol::Array<Protocol::Timeline::CPUProfileNodeCall>> calls = Protocol::Array<Protocol::Timeline::CPUProfileNodeCall>::create();
     284    for (const JSC::ProfileNode::Call& call : node->calls())
     285        calls->addItem(buildInspectorObject(call));
     286
     287    RefPtr<Protocol::Timeline::CPUProfileNode> result = Protocol::Timeline::CPUProfileNode::create()
     288        .setId(node->id())
     289        .setCalls(calls.release());
     290
     291    if (!node->functionName().isEmpty())
     292        result->setFunctionName(node->functionName());
     293
     294    if (!node->url().isEmpty()) {
     295        result->setUrl(node->url());
     296        result->setLineNumber(node->lineNumber());
     297        result->setColumnNumber(node->columnNumber());
     298    }
     299
     300    if (!node->children().isEmpty()) {
     301        RefPtr<Protocol::Array<Protocol::Timeline::CPUProfileNode>> children = Protocol::Array<Protocol::Timeline::CPUProfileNode>::create();
     302        for (RefPtr<JSC::ProfileNode> profileNode : node->children())
     303            children->addItem(buildInspectorObject(profileNode.get()));
     304        result->setChildren(children);
     305    }
     306
     307    return result.release();
     308}
     309
     310static PassRefPtr<Protocol::Timeline::CPUProfile> buildProfileInspectorObject(const JSC::Profile* profile)
     311{
     312    RefPtr<Protocol::Array<Protocol::Timeline::CPUProfileNode>> rootNodes = Protocol::Array<Protocol::Timeline::CPUProfileNode>::create();
     313    for (RefPtr<JSC::ProfileNode> profileNode : profile->head()->children())
     314        rootNodes->addItem(buildInspectorObject(profileNode.get()));
     315
     316    RefPtr<Protocol::Timeline::CPUProfile> result = Protocol::Timeline::CPUProfile::create()
     317        .setRootNodes(rootNodes);
     318
     319    if (profile->idleTime())
     320        result->setIdleTime(profile->idleTime());
     321
     322    return result.release();
     323}
     324
    274325void TimelineRecordFactory::appendProfile(InspectorObject* data, PassRefPtr<JSC::Profile> profile)
    275326{
    276     data->setValue(ASCIILiteral("profile"), InspectorProfilerAgent::buildProfileInspectorObject(profile.get()));
     327    data->setValue(ASCIILiteral("profile"), buildProfileInspectorObject(profile.get()));
    277328}
    278329
  • trunk/Source/WebCore/inspector/WorkerInspectorController.cpp

    r170774 r173198  
    4949#include "WorkerDebuggerAgent.h"
    5050#include "WorkerGlobalScope.h"
    51 #include "WorkerProfilerAgent.h"
    5251#include "WorkerReportingProxy.h"
    5352#include "WorkerRuntimeAgent.h"
     
    9594    m_runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
    9695    m_agents.append(WTF::move(debuggerAgent));
    97 
    98     auto profilerAgent = std::make_unique<WorkerProfilerAgent>(m_instrumentingAgents.get(), &workerGlobalScope);
    99     profilerAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());
    100     m_agents.append(WTF::move(profilerAgent));
    10196
    10297    m_agents.append(std::make_unique<InspectorTimelineAgent>(m_instrumentingAgents.get(), nullptr, InspectorTimelineAgent::WorkerInspector, nullptr));
  • trunk/Source/WebCore/inspector/protocol/Timeline.json

    r171195 r173198  
    1818            ],
    1919            "description": "Timeline record contains information about the recorded activity."
     20        },
     21        {
     22            "id": "CPUProfileNodeCall",
     23            "type": "object",
     24            "description": "CPU Profile call info. Holds time information for a specific call that happened on a node.",
     25            "properties": [
     26                { "name": "startTime", "type": "number", "description": "Start time for the call." },
     27                { "name": "totalTime", "type": "number", "description": "Total execution time for the call." }
     28            ]
     29        },
     30        {
     31            "id": "CPUProfileNode",
     32            "type": "object",
     33            "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.",
     34            "properties": [
     35                { "name": "id", "type": "integer", "description": "Unique identifier for this call site." },
     36                { "name": "calls", "type": "array", "items": { "$ref": "CPUProfileNodeCall" }, "description": "Calls making up this node." },
     37                { "name": "functionName", "type": "string", "optional": true, "description": "Function name." },
     38                { "name": "url", "type": "string", "optional": true, "description": "URL." },
     39                { "name": "lineNumber", "type": "integer", "optional": true, "description": "Line number." },
     40                { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number." },
     41                { "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "optional": true, "description": "Child nodes." }
     42            ]
     43        },
     44        {
     45            "id": "CPUProfile",
     46            "type": "object",
     47            "description": "Profile.",
     48            "properties": [
     49                { "name": "rootNodes", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Top level nodes in the stack." },
     50                { "name": "idleTime", "type": "number", "optional": true }
     51            ]
    2052        }
    2153    ],
  • trunk/Source/WebInspectorUI/.eslintrc

    r172547 r173198  
    5050        "NetworkAgent": true,
    5151        "PageAgent": true,
    52         "ProfilerAgent": true,
    5352        "ReplayAgent": true,
    5453        "RuntimeAgent": true,
  • trunk/Source/WebInspectorUI/ChangeLog

    r173180 r173198  
     12014-09-02  Brian J. Burg  <burg@cs.washington.edu>
     2
     3        Web Inspector: remove ProfilerAgent and legacy profiler files in the frontend
     4        https://bugs.webkit.org/show_bug.cgi?id=136462
     5
     6        Reviewed by Timothy Hatcher.
     7
     8        The legacy profiler manager didn't do anything, and its views and models
     9        have been superseded by new views and models based on the Timeline classes.
     10
     11        * .eslintrc:
     12        * UserInterface/Base/Main.js:
     13        (WebInspector.loaded):
     14        (WebInspector.openURL): Remove profile URL handling code.
     15        * UserInterface/Controllers/LegacyProfileManager.js: Removed.
     16        * UserInterface/Main.html:
     17        * UserInterface/Protocol/ConsoleObserver.js:
     18        (WebInspector.ConsoleObserver.prototype.messageAdded):
     19        * UserInterface/Protocol/InspectorFrontendAPI.js:
     20        (InspectorFrontendAPI.isProfilingJavaScript): Deleted.
     21        (InspectorFrontendAPI.startProfilingJavaScript): Deleted.
     22        (InspectorFrontendAPI.stopProfilingJavaScript): Deleted.
     23        * UserInterface/Protocol/LegacyProfilerObserver.js: Removed.
     24        * UserInterface/Views/LegacyBottomUpProfileDataGridTree.js: Removed.
     25        * UserInterface/Views/LegacyJavaScriptProfileObject.js: Removed.
     26        * UserInterface/Views/LegacyJavaScriptProfileType.js: Removed.
     27        * UserInterface/Views/LegacyJavaScriptProfileView.css: Removed.
     28        * UserInterface/Views/LegacyJavaScriptProfileView.js: Removed.
     29        * UserInterface/Views/LegacyProfileDataGridTree.js: Removed.
     30        * UserInterface/Views/LegacyProfileObject.js: Removed.
     31        * UserInterface/Views/LegacyProfileType.js: Removed.
     32        * UserInterface/Views/LegacyProfileView.css: Removed.
     33        * UserInterface/Views/LegacyProfileView.js: Removed.
     34        * UserInterface/Views/LegacyTopDownProfileDataGridTree.js: Removed.
     35
    1362014-08-29  Saam Barati  <saambarati1@gmail.com>
    237
  • trunk/Source/WebInspectorUI/UserInterface/Base/Main.js

    r173180 r173198  
    7777    if (InspectorBackend.registerTimelineDispatcher)
    7878        InspectorBackend.registerTimelineDispatcher(new WebInspector.TimelineObserver);
    79     if (InspectorBackend.registerProfilerDispatcher)
    80         InspectorBackend.registerProfilerDispatcher(new WebInspector.LegacyProfilerObserver);
    8179    if (InspectorBackend.registerCSSDispatcher)
    8280        InspectorBackend.registerCSSDispatcher(new WebInspector.CSSObserver);
     
    112110    this.applicationCacheManager = new WebInspector.ApplicationCacheManager;
    113111    this.timelineManager = new WebInspector.TimelineManager;
    114     this.legacyProfileManager = new WebInspector.LegacyProfileManager;
    115112    this.debuggerManager = new WebInspector.DebuggerManager;
    116113    this.sourceMapManager = new WebInspector.SourceMapManager;
     
    500497    if (alwaysOpenExternally) {
    501498        InspectorFrontendHost.openInNewTab(url);
    502         return;
    503     }
    504 
    505     var parsedURL = parseURL(url);
    506     if (parsedURL.scheme === WebInspector.LegacyProfileType.ProfileScheme) {
    507         var profileType = parsedURL.host.toUpperCase();
    508         var profileTitle = parsedURL.path;
    509 
    510         // The path of of the profile URL starts with a slash, remove it, so
    511         // we can get the actual title.
    512         console.assert(profileTitle[0] === "/");
    513         profileTitle = profileTitle.substring(1);
    514 
    515         this.timelineSidebarPanel.showProfile(profileType, profileTitle);
    516499        return;
    517500    }
  • trunk/Source/WebInspectorUI/UserInterface/Main.html

    r173180 r173198  
    9191    <link rel="stylesheet" href="Views/LayoutTimelineOverviewGraph.css">
    9292    <link rel="stylesheet" href="Views/LayoutTimelineView.css">
    93     <link rel="stylesheet" href="Views/LegacyJavaScriptProfileView.css">
    94     <link rel="stylesheet" href="Views/LegacyProfileView.css">
    9593    <link rel="stylesheet" href="Views/LogContentView.css">
    9694    <link rel="stylesheet" href="Views/LogIcon.css">
     
    190188    <script src="Protocol/InspectorObserver.js"></script>
    191189    <script src="Protocol/LayerTreeObserver.js"></script>
    192     <script src="Protocol/LegacyProfilerObserver.js"></script>
    193190    <script src="Protocol/LoadInspectorBackendCommands.js"></script>
    194191    <script src="Protocol/MessageDispatcher.js"></script>
     
    282279    <script src="Views/DetailsSectionRow.js"></script>
    283280    <script src="Views/HierarchicalPathComponent.js"></script>
    284     <script src="Views/LegacyProfileDataGridTree.js"></script>
    285     <script src="Views/LegacyProfileObject.js"></script>
    286     <script src="Views/LegacyProfileType.js"></script>
    287     <script src="Views/LegacyProfileView.js"></script>
    288281    <script src="Views/NavigationItem.js"></script>
    289282    <script src="Views/Section.js"></script>
     
    402395    <script src="Views/LayoutTimelineOverviewGraph.js"></script>
    403396    <script src="Views/LayoutTimelineView.js"></script>
    404     <script src="Views/LegacyBottomUpProfileDataGridTree.js"></script>
    405     <script src="Views/LegacyJavaScriptProfileObject.js"></script>
    406     <script src="Views/LegacyJavaScriptProfileType.js"></script>
    407     <script src="Views/LegacyJavaScriptProfileView.js"></script>
    408     <script src="Views/LegacyTopDownProfileDataGridTree.js"></script>
    409397    <script src="Views/LogContentView.js"></script>
    410398    <script src="Views/LogTreeElement.js"></script>
     
    488476    <script src="Controllers/JavaScriptRuntimeCompletionProvider.js"></script>
    489477    <script src="Controllers/LayerTreeManager.js"></script>
    490     <script src="Controllers/LegacyProfileManager.js"></script>
    491478    <script src="Controllers/LogManager.js"></script>
    492479    <script src="Controllers/ProbeManager.js"></script>
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/ConsoleObserver.js

    r164543 r173198  
    3939            WebInspector.issueManager.issueWasAdded(message.source, message.level, message.text, message.url, message.line, message.column || 0, message.parameters);
    4040
    41         if (message.url === "[native code]") {
    42             if (message.type === "profile")
    43                 WebInspector.legacyProfileManager.profileWasStartedFromConsole(message.text);
    44             else if (message.type === "profileEnd")
    45                 WebInspector.legacyProfileManager.profileWasEndedFromConsole();
    46         }
    47 
    4841        if (message.source === "console-api" && message.type === "clear")
    4942            return;
  • trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorFrontendAPI.js

    r172094 r173198  
    6767            WebInspector.timelineManager.stopCapturing();
    6868        }
    69     },
    70 
    71     isProfilingJavaScript: function()
    72     {
    73         return WebInspector.legacyProfileManager.isProfilingJavaScript();
    74     },
    75 
    76     startProfilingJavaScript: function()
    77     {
    78         WebInspector.legacyProfileManager.startProfilingJavaScript();
    79     },
    80 
    81     stopProfilingJavaScript: function()
    82     {
    83         WebInspector.timelineSidebarPanel.show();
    84         WebInspector.legacyProfileManager.stopProfilingJavaScript();
    8569    },
    8670
Note: See TracChangeset for help on using the changeset viewer.