Changeset 173198 in webkit
- Timestamp:
- Sep 2, 2014 8:17:47 PM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 25 deleted
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/CMakeLists.txt
r173164 r173198 301 301 inspector/agents/InspectorConsoleAgent.cpp 302 302 inspector/agents/InspectorDebuggerAgent.cpp 303 inspector/agents/InspectorProfilerAgent.cpp304 303 inspector/agents/InspectorRuntimeAgent.cpp 305 304 inspector/agents/JSGlobalObjectConsoleAgent.cpp 306 305 inspector/agents/JSGlobalObjectDebuggerAgent.cpp 307 inspector/agents/JSGlobalObjectProfilerAgent.cpp308 306 inspector/agents/JSGlobalObjectRuntimeAgent.cpp 309 307 … … 957 955 ${JAVASCRIPTCORE_DIR}/inspector/protocol/GenericTypes.json 958 956 ${JAVASCRIPTCORE_DIR}/inspector/protocol/InspectorDomain.json 959 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Profiler.json960 957 ${JAVASCRIPTCORE_DIR}/inspector/protocol/Runtime.json 961 958 ) -
trunk/Source/JavaScriptCore/ChangeLog
r173188 r173198 1 2014-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 1 31 2014-09-02 Andreas Kling <akling@apple.com> 2 32 -
trunk/Source/JavaScriptCore/DerivedSources.make
r172930 r173198 118 118 $(JavaScriptCore)/inspector/protocol/GenericTypes.json \ 119 119 $(JavaScriptCore)/inspector/protocol/InspectorDomain.json \ 120 $(JavaScriptCore)/inspector/protocol/Profiler.json \121 120 $(JavaScriptCore)/inspector/protocol/Runtime.json \ 122 121 # -
trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj
r173072 r173198 575 575 <ClCompile Include="..\inspector\agents\InspectorConsoleAgent.cpp" /> 576 576 <ClCompile Include="..\inspector\agents\InspectorDebuggerAgent.cpp" /> 577 <ClCompile Include="..\inspector\agents\InspectorProfilerAgent.cpp" />578 577 <ClCompile Include="..\inspector\agents\InspectorRuntimeAgent.cpp" /> 579 578 <ClCompile Include="..\interpreter\AbstractPC.cpp" /> … … 1279 1278 <ClInclude Include="..\inspector\agents\InspectorConsoleAgent.h" /> 1280 1279 <ClInclude Include="..\inspector\agents\InspectorDebuggerAgent.h" /> 1281 <ClInclude Include="..\inspector\agents\InspectorProfilerAgent.h" />1282 1280 <ClInclude Include="..\inspector\agents\InspectorRuntimeAgent.h" /> 1283 1281 <ClInclude Include="..\interpreter\AbstractPC.h" /> -
trunk/Source/JavaScriptCore/JavaScriptCore.vcxproj/JavaScriptCore.vcxproj.filters
r172930 r173198 343 343 <Filter>inspector</Filter> 344 344 </ClCompile> 345 <ClCompile Include="..\inspector\agents\InspectorProfilerAgent.cpp">346 <Filter>inspector</Filter>347 </ClCompile>348 345 <ClCompile Include="..\inspector\agents\InspectorRuntimeAgent.cpp"> 349 346 <Filter>inspector</Filter> … … 2191 2188 </ClInclude> 2192 2189 <ClInclude Include="..\inspector\agents\InspectorDebuggerAgent.h"> 2193 <Filter>inspector</Filter>2194 </ClInclude>2195 <ClInclude Include="..\inspector\agents\InspectorProfilerAgent.h">2196 2190 <Filter>inspector</Filter> 2197 2191 </ClInclude> -
trunk/Source/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
r173072 r173198 834 834 1A28D4A8177B71C80007FA3C /* JSStringRefPrivate.h in Headers */ = {isa = PBXBuildFile; fileRef = 1A28D4A7177B71C80007FA3C /* JSStringRefPrivate.h */; settings = {ATTRIBUTES = (Private, ); }; }; 835 835 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 */; };840 836 2600B5A6152BAAA70091EE5F /* JSStringJoiner.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 2600B5A4152BAAA70091EE5F /* JSStringJoiner.cpp */; }; 841 837 2600B5A7152BAAA70091EE5F /* JSStringJoiner.h in Headers */ = {isa = PBXBuildFile; fileRef = 2600B5A5152BAAA70091EE5F /* JSStringJoiner.h */; }; … … 2720 2716 1CAA8B4A0D32C39A0041BCFF /* JavaScript.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavaScript.h; sourceTree = "<group>"; }; 2721 2717 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>"; };2726 2718 2600B5A4152BAAA70091EE5F /* JSStringJoiner.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSStringJoiner.cpp; sourceTree = "<group>"; }; 2727 2719 2600B5A5152BAAA70091EE5F /* JSStringJoiner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSStringJoiner.h; sourceTree = "<group>"; }; … … 5321 5313 A57D23E31890CEBF0031C7FA /* InspectorDebuggerAgent.cpp */, 5322 5314 A57D23E41890CEBF0031C7FA /* InspectorDebuggerAgent.h */, 5323 1CAA9A1C18F4997F000A369D /* InspectorProfilerAgent.cpp */,5324 1CAA9A1D18F4997F000A369D /* InspectorProfilerAgent.h */,5325 5315 A50E4B5D18809DD50068A46D /* InspectorRuntimeAgent.cpp */, 5326 5316 A50E4B5E18809DD50068A46D /* InspectorRuntimeAgent.h */, … … 5329 5319 A57D23E71891B0770031C7FA /* JSGlobalObjectDebuggerAgent.cpp */, 5330 5320 A57D23E81891B0770031C7FA /* JSGlobalObjectDebuggerAgent.h */, 5331 1CAA9A2018F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp */,5332 1CAA9A2118F4A220000A369D /* JSGlobalObjectProfilerAgent.h */,5333 5321 A50E4B5F18809DD50068A46D /* JSGlobalObjectRuntimeAgent.cpp */, 5334 5322 A50E4B6018809DD50068A46D /* JSGlobalObjectRuntimeAgent.h */, … … 6210 6198 BC18C4170E16F5CD00B34460 /* JSArray.h in Headers */, 6211 6199 0F2B66E317B6B5AB00A7AE3F /* JSArrayBuffer.h in Headers */, 6212 1CAA9A2318F4A220000A369D /* JSGlobalObjectProfilerAgent.h in Headers */,6213 6200 0F2B66E517B6B5AB00A7AE3F /* JSArrayBufferConstructor.h in Headers */, 6214 6201 0F2B66E717B6B5AB00A7AE3F /* JSArrayBufferPrototype.h in Headers */, … … 6238 6225 0F7576D318E1FEE9002EF4CD /* AccessorCallJITStubRoutine.h in Headers */, 6239 6226 0F2B66EC17B6B5AB00A7AE3F /* JSDataView.h in Headers */, 6240 1CAA9A1F18F4997F000A369D /* InspectorProfilerAgent.h in Headers */,6241 6227 0F2B66EE17B6B5AB00A7AE3F /* JSDataViewPrototype.h in Headers */, 6242 6228 978801411471AD920041B016 /* JSDateMath.h in Headers */, … … 7399 7385 0F6B1CC31862C47800845D97 /* FTLRegisterAtOffset.cpp in Sources */, 7400 7386 0FCEFAAB1804C13E00472CE4 /* FTLSaveRestore.cpp in Sources */, 7401 1CAA9A2218F4A220000A369D /* JSGlobalObjectProfilerAgent.cpp in Sources */,7402 7387 0F25F1B1181635F300522F39 /* FTLSlowPathCall.cpp in Sources */, 7403 7388 0F25F1B3181635F300522F39 /* FTLSlowPathCallKey.cpp in Sources */, … … 7623 7608 0F13912916771C33009CCB07 /* ProfilerBytecodeSequence.cpp in Sources */, 7624 7609 0FF729AF166AD35C000F5BA3 /* ProfilerCompilation.cpp in Sources */, 7625 1CAA9A1E18F4997F000A369D /* InspectorProfilerAgent.cpp in Sources */,7626 7610 0FF729B0166AD35C000F5BA3 /* ProfilerCompilationKind.cpp in Sources */, 7627 7611 0FF729B1166AD35C000F5BA3 /* ProfilerCompiledBytecode.cpp in Sources */, -
trunk/Source/JavaScriptCore/inspector/JSConsoleClient.cpp
r167530 r173198 30 30 31 31 #include "InspectorConsoleAgent.h" 32 #include "InspectorProfilerAgent.h"33 32 #include "ScriptArguments.h" 34 33 #include "ScriptCallStack.h" … … 67 66 } 68 67 69 JSConsoleClient::JSConsoleClient(InspectorConsoleAgent* consoleAgent , InspectorProfilerAgent* profilerAgent)68 JSConsoleClient::JSConsoleClient(InspectorConsoleAgent* consoleAgent) 70 69 : ConsoleClient() 71 70 , m_consoleAgent(consoleAgent) 72 , m_profilerAgent(profilerAgent)73 71 { 74 72 static std::once_flag initializeLogging; … … 95 93 } 96 94 97 void JSConsoleClient::profile(JSC::ExecState* exec, const String& title)95 void JSConsoleClient::profile(JSC::ExecState*, const String&) 98 96 { 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> 106 98 } 107 99 108 void JSConsoleClient::profileEnd(JSC::ExecState* exec, const String& title)100 void JSConsoleClient::profileEnd(JSC::ExecState*, const String&) 109 101 { 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> 120 103 } 121 104 -
trunk/Source/JavaScriptCore/inspector/JSConsoleClient.h
r167811 r173198 32 32 33 33 class InspectorConsoleAgent; 34 class InspectorProfilerAgent;35 34 36 35 class JSConsoleClient final : public JSC::ConsoleClient { 37 36 WTF_MAKE_FAST_ALLOCATED; 38 37 public: 39 explicit JSConsoleClient(InspectorConsoleAgent* , InspectorProfilerAgent*);38 explicit JSConsoleClient(InspectorConsoleAgent*); 40 39 virtual ~JSConsoleClient() { } 41 40 … … 58 57 59 58 InspectorConsoleAgent* m_consoleAgent; 60 InspectorProfilerAgent* m_profilerAgent;61 59 }; 62 60 -
trunk/Source/JavaScriptCore/inspector/JSGlobalObjectInspectorController.cpp
r170774 r173198 40 40 #include "JSGlobalObjectConsoleAgent.h" 41 41 #include "JSGlobalObjectDebuggerAgent.h" 42 #include "JSGlobalObjectProfilerAgent.h"43 42 #include "JSGlobalObjectRuntimeAgent.h" 44 43 #include "ScriptArguments.h" … … 62 61 auto consoleAgent = std::make_unique<JSGlobalObjectConsoleAgent>(m_injectedScriptManager.get()); 63 62 auto debuggerAgent = std::make_unique<JSGlobalObjectDebuggerAgent>(m_injectedScriptManager.get(), m_globalObject, consoleAgent.get()); 64 auto profilerAgent = std::make_unique<JSGlobalObjectProfilerAgent>(m_globalObject);65 63 66 64 m_consoleAgent = consoleAgent.get(); 67 m_consoleClient = std::make_unique<JSConsoleClient>(m_consoleAgent , profilerAgent.get());65 m_consoleClient = std::make_unique<JSConsoleClient>(m_consoleAgent); 68 66 69 67 runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer()); 70 profilerAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer());71 68 72 69 m_agents.append(std::make_unique<InspectorAgent>()); -
trunk/Source/WebCore/CMakeLists.txt
r173155 r173198 1807 1807 inspector/PageConsoleAgent.cpp 1808 1808 inspector/PageDebuggerAgent.cpp 1809 inspector/PageProfilerAgent.cpp1810 1809 inspector/PageRuntimeAgent.cpp 1811 1810 inspector/PageScriptDebugServer.cpp … … 1815 1814 inspector/WebInjectedScriptHost.cpp 1816 1815 inspector/WebInjectedScriptManager.cpp 1817 inspector/WebProfilerAgent.cpp1818 1816 inspector/WorkerConsoleAgent.cpp 1819 1817 inspector/WorkerDebuggerAgent.cpp 1820 1818 inspector/WorkerInspectorController.cpp 1821 inspector/WorkerProfilerAgent.cpp1822 1819 inspector/WorkerRuntimeAgent.cpp 1823 1820 -
trunk/Source/WebCore/ChangeLog
r173197 r173198 1 2014-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 1 44 2014-09-02 Jer Noble <jer.noble@apple.com> 2 45 -
trunk/Source/WebCore/WebCore.order
r172975 r173198 731 731 __ZN7WebCore23InspectorCompositeState21inspectorStateUpdatedEv 732 732 __ZN7WebCore25InspectorDOMDebuggerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_17InspectorDOMAgentEPNS_22InspectorDebuggerAgentEPNS_14InspectorAgentE 733 __ZN7WebCore22InspectorProfilerAgent6createEPNS_19InstrumentingAgentsEPNS_21InspectorConsoleAgentEPNS_4PageEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE734 __ZN7WebCore22InspectorProfilerAgentC2EPNS_19InstrumentingAgentsEPNS_21InspectorConsoleAgentEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE735 __ZN7WebCore26InspectorHeapProfilerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_21InjectedScriptManagerE736 733 __ZN7WebCore20InspectorWorkerAgent6createEPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateE 737 734 __ZN7WebCore20InspectorCanvasAgentC1EPNS_19InstrumentingAgentsEPNS_23InspectorCompositeStateEPNS_18InspectorPageAgentEPNS_21InjectedScriptManagerE … … 6500 6497 __ZN7WebCore22InspectorDebuggerAgentD2Ev 6501 6498 __ZN7WebCore25InspectorDOMDebuggerAgentD0Ev 6502 __ZN7WebCore17PageProfilerAgentD0Ev6503 __ZN7WebCore22InspectorProfilerAgentD2Ev6504 __ZN7WebCore26InspectorHeapProfilerAgentD0Ev6505 __ZN7WebCore26InspectorHeapProfilerAgentD2Ev6506 6499 __ZN7WebCore20InspectorWorkerAgentD0Ev 6507 6500 __ZN7WebCore20InspectorWorkerAgentD2Ev … … 20998 20991 __ZTVN7WebCore12_GLOBAL__N_114CounterVisitorE 20999 20992 __ZTVN7WebCore18InspectorPageAgentE 21000 __ZTVN7WebCore22InspectorProfilerAgentE21001 20993 __ZTVN7WebCore22InspectorResourceAgentE 21002 20994 __ZTVN7WebCore21InspectorRuntimeAgentE … … 24384 24376 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore23InspectorFrontendClientEEE 24385 24377 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore26InspectorBackendDispatcherEEE 24386 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore22InspectorProfilerAgentEEE24387 24378 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore22InspectorDebuggerAgentEEE 24388 24379 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore18InspectorPageAgentEEE … … 24455 24446 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore21InspectorConsoleAgentEEE 24456 24447 __ZTVN7WebCore8Protocol5ArrayINS0_8Profiler13ProfileHeaderEEE 24457 __ZTVN7WebCore18InspectorBaseAgentINS_22InspectorProfilerAgentEEE24458 __ZTVN7WebCore19WorkerProfilerAgentE24459 __ZTVN7WebCore17PageProfilerAgentE24460 24448 __ZTVN7WebCore18InspectorBaseAgentINS_22InspectorResourceAgentEEE 24461 24449 __ZTVN3WTF21MemoryInstrumentation7WrapperIN7WebCore8Protocol7Network9InitiatorEEE … … 26461 26449 __ZN7WebCore18WebCoreMemoryTypes24InspectorDOMStorageAgentE 26462 26450 __ZN7WebCore18WebCoreMemoryTypes16InspectorOverlayE 26463 __ZN7WebCore18WebCoreMemoryTypes22InspectorProfilerAgentE26464 26451 __ZN7WebCore18WebCoreMemoryTypes22InspectorDebuggerAgentE 26465 26452 __ZN7WebCore18WebCoreMemoryTypes22InspectorResourceAgentE -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj
r172930 r173198 18110 18110 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 18111 18111 </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>18120 18112 <ClCompile Include="..\inspector\PageRuntimeAgent.cpp"> 18121 18113 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> … … 18158 18150 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Production|x64'">true</ExcludedFromBuild> 18159 18151 </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>18168 18152 <ClCompile Include="..\inspector\WorkerConsoleAgent.cpp"> 18169 18153 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> … … 18199 18183 </ClCompile> 18200 18184 <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">18209 18185 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">true</ExcludedFromBuild> 18210 18186 <ExcludedFromBuild Condition="'$(Configuration)|$(Platform)'=='Release|x64'">true</ExcludedFromBuild> … … 21304 21280 <ClInclude Include="..\inspector\PageConsoleAgent.h" /> 21305 21281 <ClInclude Include="..\inspector\PageDebuggerAgent.h" /> 21306 <ClInclude Include="..\inspector\PageProfilerAgent.h" />21307 21282 <ClInclude Include="..\inspector\PageRuntimeAgent.h" /> 21308 21283 <ClInclude Include="..\inspector\PageScriptDebugServer.h" /> … … 21310 21285 <ClInclude Include="..\inspector\WebConsoleAgent.h" /> 21311 21286 <ClInclude Include="..\inspector\WebDebuggerAgent.h" /> 21312 <ClInclude Include="..\inspector\WebProfilerAgent.h" />21313 21287 <ClInclude Include="..\inspector\WebInjectedScriptHost.h" /> 21314 21288 <ClInclude Include="..\inspector\WebInjectedScriptManager.h" /> … … 21316 21290 <ClInclude Include="..\inspector\WorkerDebuggerAgent.h" /> 21317 21291 <ClInclude Include="..\inspector\WorkerInspectorController.h" /> 21318 <ClInclude Include="..\inspector\WorkerProfilerAgent.h" />21319 21292 <ClInclude Include="..\inspector\WorkerRuntimeAgent.h" /> 21320 21293 <ClInclude Include="..\mathml\MathMLElement.h" /> -
trunk/Source/WebCore/WebCore.vcxproj/WebCore.vcxproj.filters
r172930 r173198 4837 4837 <Filter>inspector</Filter> 4838 4838 </ClCompile> 4839 <ClCompile Include="..\inspector\PageProfilerAgent.cpp">4840 <Filter>inspector</Filter>4841 </ClCompile>4842 4839 <ClCompile Include="..\inspector\PageRuntimeAgent.cpp"> 4843 4840 <Filter>inspector</Filter> … … 4855 4852 <Filter>inspector</Filter> 4856 4853 </ClCompile> 4857 <ClCompile Include="..\inspector\WebProfilerAgent.cpp">4858 <Filter>inspector</Filter>4859 </ClCompile>4860 4854 <ClCompile Include="..\inspector\WebInjectedScriptHost.cpp"> 4861 4855 <Filter>inspector</Filter> … … 4871 4865 </ClCompile> 4872 4866 <ClCompile Include="..\inspector\WorkerInspectorController.cpp"> 4873 <Filter>inspector</Filter>4874 </ClCompile>4875 <ClCompile Include="..\inspector\WorkerProfilerAgent.cpp">4876 4867 <Filter>inspector</Filter> 4877 4868 </ClCompile> … … 12568 12559 <Filter>inspector</Filter> 12569 12560 </ClInclude> 12570 <ClInclude Include="..\inspector\PageProfilerAgent.h">12571 <Filter>inspector</Filter>12572 </ClInclude>12573 12561 <ClInclude Include="..\inspector\PageRuntimeAgent.h"> 12574 12562 <Filter>inspector</Filter> … … 12586 12574 <Filter>inspector</Filter> 12587 12575 </ClInclude> 12588 <ClInclude Include="..\inspector\WebProfilerAgent.h">12589 <Filter>inspector</Filter>12590 </ClInclude>12591 12576 <ClInclude Include="..\inspector\WebInjectedScriptHost.h"> 12592 12577 <Filter>inspector</Filter> … … 12602 12587 </ClInclude> 12603 12588 <ClInclude Include="..\inspector\WorkerInspectorController.h"> 12604 <Filter>inspector</Filter>12605 </ClInclude>12606 <ClInclude Include="..\inspector\WorkerProfilerAgent.h">12607 12589 <Filter>inspector</Filter> 12608 12590 </ClInclude> -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r173197 r173198 952 952 1CB4214C0AF2B2CA0085AD91 /* DOMHTMLElementInternal.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 85E711580AC5D5340053270F /* DOMHTMLElementInternal.h */; }; 953 953 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 */; };960 954 1CCA732210ADD44A00FD440D /* DOMHTMLInputElementPrivate.h in Copy Generated Headers */ = {isa = PBXBuildFile; fileRef = 1CCA732110ADD43E00FD440D /* DOMHTMLInputElementPrivate.h */; }; 961 955 1CE83AC30ADAFFD7009354F6 /* DeleteButtonController.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 1C4C8EFF0AD85D87009475CE /* DeleteButtonController.cpp */; }; … … 7906 7900 1CAF347F0A6C405200ABE06E /* WebScriptObject.mm */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.objcpp; path = WebScriptObject.mm; sourceTree = "<group>"; }; 7907 7901 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>"; };7914 7902 1CCA732110ADD43E00FD440D /* DOMHTMLInputElementPrivate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMHTMLInputElementPrivate.h; sourceTree = "<group>"; }; 7915 7903 1CD0B6200AABDB5000D0A3FF /* PublicDOMInterfaces.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PublicDOMInterfaces.h; sourceTree = "<group>"; }; … … 15242 15230 F34742DA134362F000531BC2 /* PageDebuggerAgent.cpp */, 15243 15231 F34742DB134362F000531BC2 /* PageDebuggerAgent.h */, 15244 1CC6B06E18F8687A0007ECCD /* PageProfilerAgent.cpp */,15245 1CC6B06F18F8687A0007ECCD /* PageProfilerAgent.h */,15246 15232 F382088C147D35F90010BC06 /* PageRuntimeAgent.cpp */, 15247 15233 F382088D147D35F90010BC06 /* PageRuntimeAgent.h */, … … 15260 15246 A584FE2D1864CB8400843B10 /* WebInjectedScriptManager.cpp */, 15261 15247 A584FE2E1864CB8400843B10 /* WebInjectedScriptManager.h */, 15262 1CC6B06A18F8526B0007ECCD /* WebProfilerAgent.cpp */,15263 1CC6B06B18F8526B0007ECCD /* WebProfilerAgent.h */,15264 15248 F382088E147D35F90010BC06 /* WorkerConsoleAgent.cpp */, 15265 15249 F382088F147D35F90010BC06 /* WorkerConsoleAgent.h */, … … 15268 15252 F36E07A21358A8BE00AACBC9 /* WorkerInspectorController.cpp */, 15269 15253 F36E07A31358A8BE00AACBC9 /* WorkerInspectorController.h */, 15270 1CC6B07218F893A20007ECCD /* WorkerProfilerAgent.cpp */,15271 1CC6B07318F893A20007ECCD /* WorkerProfilerAgent.h */,15272 15254 F3820890147D35F90010BC06 /* WorkerRuntimeAgent.cpp */, 15273 15255 F3820891147D35F90010BC06 /* WorkerRuntimeAgent.h */, … … 24200 24182 26C17A3E1491D2D400D12BA2 /* FileSystemIOS.h in Headers */, 24201 24183 976D6C8E122B8A3D001FD1F7 /* FileThread.h in Headers */, 24202 1CC6B06D18F8526B0007ECCD /* WebProfilerAgent.h in Headers */,24203 24184 BC5EB69F0E81DAEB00B25965 /* FillLayer.h in Headers */, 24204 24185 845E72F80FD261EE00A87D79 /* Filter.h in Headers */, … … 25955 25936 C5102D940FD9AA2D00FAFF04 /* StorageSyncManager.h in Headers */, 25956 25937 511F231A0DC160DA004F0032 /* StorageThread.h in Headers */, 25957 1CC6B07118F8687A0007ECCD /* PageProfilerAgent.h in Headers */,25958 25938 3AB02D2A12D4F91600FBB694 /* StorageTracker.h in Headers */, 25959 25939 3AC3680012EF7A09006A3D6F /* StorageTrackerClient.h in Headers */, … … 26318 26298 CDA07FC218E0A22B004699FA /* SystemSleepListenerMac.h in Headers */, 26319 26299 93F198F608245E59001E9ABC /* TextResourceDecoder.h in Headers */, 26320 1CC6B07518F893A20007ECCD /* WorkerProfilerAgent.h in Headers */,26321 26300 A824B4650E2EF2EA0081A7B7 /* TextRun.h in Headers */, 26322 26301 448B1B7A0F3A2F9B0047A9E2 /* TextSizeAdjustment.h in Headers */, … … 27613 27592 F55B3DBB1251F12D003EF269 /* EmailInputType.cpp in Sources */, 27614 27593 F52AD5E41534245F0059FBE6 /* EmptyClients.cpp in Sources */, 27615 1CC6B07018F8687A0007ECCD /* PageProfilerAgent.cpp in Sources */,27616 27594 A8EA7EC10A1945D000A8EF5F /* EntityReference.cpp in Sources */, 27617 27595 FD31609212B026F700C1A359 /* EqualPowerPanner.cpp in Sources */, … … 28593 28571 B2FA3DE00AB75A6F000E5AC4 /* JSSVGPatternElement.cpp in Sources */, 28594 28572 8542A7960AE5C94200DF58DF /* JSSVGPoint.cpp in Sources */, 28595 1CC6B06C18F8526B0007ECCD /* WebProfilerAgent.cpp in Sources */,28596 28573 B2FA3DE20AB75A6F000E5AC4 /* JSSVGPointList.cpp in Sources */, 28597 28574 B2FA3DE50AB75A6F000E5AC4 /* JSSVGPolygonElement.cpp in Sources */, … … 28949 28926 447958051643B4B2001E0A7F /* ParsedContentType.cpp in Sources */, 28950 28927 F55B3DC91251F12D003EF269 /* PasswordInputType.cpp in Sources */, 28951 1CC6B07418F893A20007ECCD /* WorkerProfilerAgent.cpp in Sources */,28952 28928 E453901E0EAFCACA003695C8 /* PasteboardIOS.mm in Sources */, 28953 28929 4B2709830AF2E5E00065127F /* PasteboardMac.mm in Sources */, -
trunk/Source/WebCore/inspector/InspectorAllInOne.cpp
r167530 r173198 58 58 #include "PageConsoleAgent.cpp" 59 59 #include "PageDebuggerAgent.cpp" 60 #include "PageProfilerAgent.cpp"61 60 #include "PageRuntimeAgent.cpp" 62 61 #include "PageScriptDebugServer.cpp" … … 66 65 #include "WebInjectedScriptHost.cpp" 67 66 #include "WebInjectedScriptManager.cpp" 68 #include "WebProfilerAgent.cpp"69 67 #include "WorkerConsoleAgent.cpp" 70 68 #include "WorkerDebuggerAgent.cpp" 71 69 #include "WorkerInspectorController.cpp" 72 #include "WorkerProfilerAgent.cpp"73 70 #include "WorkerRuntimeAgent.cpp" -
trunk/Source/WebCore/inspector/InspectorController.cpp
r171866 r173198 65 65 #include "PageConsoleAgent.h" 66 66 #include "PageDebuggerAgent.h" 67 #include "PageProfilerAgent.h"68 67 #include "PageRuntimeAgent.h" 69 68 #include "PageScriptDebugServer.h" … … 155 154 m_agents.append(WTF::move(domDebuggerAgentPtr)); 156 155 157 auto profilerAgentPtr = std::make_unique<PageProfilerAgent>(m_instrumentingAgents.get(), &page);158 m_profilerAgent = profilerAgentPtr.get();159 m_agents.append(WTF::move(profilerAgentPtr));160 161 156 m_agents.append(std::make_unique<InspectorApplicationCacheAgent>(m_instrumentingAgents.get(), pageAgent)); 162 157 m_agents.append(std::make_unique<InspectorWorkerAgent>(m_instrumentingAgents.get())); … … 177 172 runtimeAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer()); 178 173 m_timelineAgent->setPageScriptDebugServer(&m_debuggerAgent->scriptDebugServer()); 179 m_profilerAgent->setScriptDebugServer(&m_debuggerAgent->scriptDebugServer());180 174 } 181 175 -
trunk/Source/WebCore/inspector/InspectorController.h
r172862 r173198 48 48 class InspectorBackendDispatcher; 49 49 class InspectorFrontendChannel; 50 class InspectorProfilerAgent;51 50 class InspectorObject; 52 51 } … … 145 144 PageDebuggerAgent* m_debuggerAgent; 146 145 InspectorDOMDebuggerAgent* m_domDebuggerAgent; 147 Inspector::InspectorProfilerAgent* m_profilerAgent;148 146 InspectorTimelineAgent* m_timelineAgent; 149 147 -
trunk/Source/WebCore/inspector/InspectorInstrumentation.cpp
r172864 r173198 71 71 #include <inspector/ScriptCallStack.h> 72 72 #include <inspector/agents/InspectorDebuggerAgent.h> 73 #include <inspector/agents/InspectorProfilerAgent.h>74 73 #include <profiler/Profile.h> 75 74 #include <runtime/ConsoleTypes.h> … … 769 768 if (InspectorResourceAgent* resourceAgent = instrumentingAgents->inspectorResourceAgent()) 770 769 resourceAgent->mainFrameNavigated(loader); 771 772 if (InspectorProfilerAgent* profilerAgent = instrumentingAgents->inspectorProfilerAgent())773 profilerAgent->reset();774 770 775 771 if (InspectorCSSAgent* cssAgent = instrumentingAgents->inspectorCSSAgent()) -
trunk/Source/WebCore/inspector/InstrumentingAgents.cpp
r171195 r173198 69 69 , m_pageDebuggerAgent(nullptr) 70 70 , m_inspectorDOMDebuggerAgent(nullptr) 71 , m_inspectorProfilerAgent(nullptr)72 71 , m_inspectorWorkerAgent(nullptr) 73 72 { … … 98 97 m_pageDebuggerAgent = nullptr; 99 98 m_inspectorDOMDebuggerAgent = nullptr; 100 m_inspectorProfilerAgent = nullptr;101 99 m_inspectorWorkerAgent = nullptr; 102 100 } -
trunk/Source/WebCore/inspector/InstrumentingAgents.h
r172849 r173198 42 42 class InspectorAgent; 43 43 class InspectorDebuggerAgent; 44 class InspectorProfilerAgent;45 44 } 46 45 … … 134 133 void setInspectorDOMDebuggerAgent(InspectorDOMDebuggerAgent* agent) { m_inspectorDOMDebuggerAgent = agent; } 135 134 136 Inspector::InspectorProfilerAgent* inspectorProfilerAgent() const { return m_inspectorProfilerAgent; }137 void setInspectorProfilerAgent(Inspector::InspectorProfilerAgent* agent) { m_inspectorProfilerAgent = agent; }138 139 135 InspectorWorkerAgent* inspectorWorkerAgent() const { return m_inspectorWorkerAgent; } 140 136 void setInspectorWorkerAgent(InspectorWorkerAgent* agent) { m_inspectorWorkerAgent = agent; } … … 170 166 PageDebuggerAgent* m_pageDebuggerAgent; 171 167 InspectorDOMDebuggerAgent* m_inspectorDOMDebuggerAgent; 172 Inspector::InspectorProfilerAgent* m_inspectorProfilerAgent;173 168 InspectorWorkerAgent* m_inspectorWorkerAgent; 174 169 }; -
trunk/Source/WebCore/inspector/TimelineRecordFactory.cpp
r171195 r173198 38 38 #include "Event.h" 39 39 #include "FloatQuad.h" 40 #include "InspectorWebProtocolTypes.h" 40 41 #include "IntRect.h" 41 42 #include "JSMainThreadExecState.h" … … 43 44 #include "ResourceRequest.h" 44 45 #include "ResourceResponse.h" 45 #include <inspector/InspectorValues.h>46 46 #include <inspector/ScriptBreakpoint.h> 47 47 #include <inspector/ScriptCallStack.h> 48 48 #include <inspector/ScriptCallStackFactory.h> 49 #include <inspector/agents/InspectorProfilerAgent.h>50 49 #include <profiler/Profile.h> 51 50 #include <wtf/CurrentTime.h> … … 272 271 } 273 272 273 static 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 281 static 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 310 static 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 274 325 void TimelineRecordFactory::appendProfile(InspectorObject* data, PassRefPtr<JSC::Profile> profile) 275 326 { 276 data->setValue(ASCIILiteral("profile"), InspectorProfilerAgent::buildProfileInspectorObject(profile.get()));327 data->setValue(ASCIILiteral("profile"), buildProfileInspectorObject(profile.get())); 277 328 } 278 329 -
trunk/Source/WebCore/inspector/WorkerInspectorController.cpp
r170774 r173198 49 49 #include "WorkerDebuggerAgent.h" 50 50 #include "WorkerGlobalScope.h" 51 #include "WorkerProfilerAgent.h"52 51 #include "WorkerReportingProxy.h" 53 52 #include "WorkerRuntimeAgent.h" … … 95 94 m_runtimeAgent->setScriptDebugServer(&debuggerAgent->scriptDebugServer()); 96 95 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));101 96 102 97 m_agents.append(std::make_unique<InspectorTimelineAgent>(m_instrumentingAgents.get(), nullptr, InspectorTimelineAgent::WorkerInspector, nullptr)); -
trunk/Source/WebCore/inspector/protocol/Timeline.json
r171195 r173198 18 18 ], 19 19 "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 ] 20 52 } 21 53 ], -
trunk/Source/WebInspectorUI/.eslintrc
r172547 r173198 50 50 "NetworkAgent": true, 51 51 "PageAgent": true, 52 "ProfilerAgent": true,53 52 "ReplayAgent": true, 54 53 "RuntimeAgent": true, -
trunk/Source/WebInspectorUI/ChangeLog
r173180 r173198 1 2014-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 1 36 2014-08-29 Saam Barati <saambarati1@gmail.com> 2 37 -
trunk/Source/WebInspectorUI/UserInterface/Base/Main.js
r173180 r173198 77 77 if (InspectorBackend.registerTimelineDispatcher) 78 78 InspectorBackend.registerTimelineDispatcher(new WebInspector.TimelineObserver); 79 if (InspectorBackend.registerProfilerDispatcher)80 InspectorBackend.registerProfilerDispatcher(new WebInspector.LegacyProfilerObserver);81 79 if (InspectorBackend.registerCSSDispatcher) 82 80 InspectorBackend.registerCSSDispatcher(new WebInspector.CSSObserver); … … 112 110 this.applicationCacheManager = new WebInspector.ApplicationCacheManager; 113 111 this.timelineManager = new WebInspector.TimelineManager; 114 this.legacyProfileManager = new WebInspector.LegacyProfileManager;115 112 this.debuggerManager = new WebInspector.DebuggerManager; 116 113 this.sourceMapManager = new WebInspector.SourceMapManager; … … 500 497 if (alwaysOpenExternally) { 501 498 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, so511 // we can get the actual title.512 console.assert(profileTitle[0] === "/");513 profileTitle = profileTitle.substring(1);514 515 this.timelineSidebarPanel.showProfile(profileType, profileTitle);516 499 return; 517 500 } -
trunk/Source/WebInspectorUI/UserInterface/Main.html
r173180 r173198 91 91 <link rel="stylesheet" href="Views/LayoutTimelineOverviewGraph.css"> 92 92 <link rel="stylesheet" href="Views/LayoutTimelineView.css"> 93 <link rel="stylesheet" href="Views/LegacyJavaScriptProfileView.css">94 <link rel="stylesheet" href="Views/LegacyProfileView.css">95 93 <link rel="stylesheet" href="Views/LogContentView.css"> 96 94 <link rel="stylesheet" href="Views/LogIcon.css"> … … 190 188 <script src="Protocol/InspectorObserver.js"></script> 191 189 <script src="Protocol/LayerTreeObserver.js"></script> 192 <script src="Protocol/LegacyProfilerObserver.js"></script>193 190 <script src="Protocol/LoadInspectorBackendCommands.js"></script> 194 191 <script src="Protocol/MessageDispatcher.js"></script> … … 282 279 <script src="Views/DetailsSectionRow.js"></script> 283 280 <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>288 281 <script src="Views/NavigationItem.js"></script> 289 282 <script src="Views/Section.js"></script> … … 402 395 <script src="Views/LayoutTimelineOverviewGraph.js"></script> 403 396 <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>409 397 <script src="Views/LogContentView.js"></script> 410 398 <script src="Views/LogTreeElement.js"></script> … … 488 476 <script src="Controllers/JavaScriptRuntimeCompletionProvider.js"></script> 489 477 <script src="Controllers/LayerTreeManager.js"></script> 490 <script src="Controllers/LegacyProfileManager.js"></script>491 478 <script src="Controllers/LogManager.js"></script> 492 479 <script src="Controllers/ProbeManager.js"></script> -
trunk/Source/WebInspectorUI/UserInterface/Protocol/ConsoleObserver.js
r164543 r173198 39 39 WebInspector.issueManager.issueWasAdded(message.source, message.level, message.text, message.url, message.line, message.column || 0, message.parameters); 40 40 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 48 41 if (message.source === "console-api" && message.type === "clear") 49 42 return; -
trunk/Source/WebInspectorUI/UserInterface/Protocol/InspectorFrontendAPI.js
r172094 r173198 67 67 WebInspector.timelineManager.stopCapturing(); 68 68 } 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();85 69 }, 86 70
Note: See TracChangeset
for help on using the changeset viewer.