Changeset 173198 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- Sep 2, 2014, 8:17:47 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 5 deleted
- 9 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 <[email protected]> 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 <[email protected]> 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>());
Note:
See TracChangeset
for help on using the changeset viewer.