Remove LegacyProfiler
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2016 02:00:42 +0000 (02:00 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 21 May 2016 02:00:42 +0000 (02:00 +0000)
https://bugs.webkit.org/show_bug.cgi?id=153565

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2016-05-20
Reviewed by Saam Barati.

.:

* ManualTests/inspector/profiler-test-call.html: Removed.
* ManualTests/inspector/profiler-test-many-calls-in-the-same-scope.html: Removed.

Source/JavaScriptCore:

* inspector/protocol/Timeline.json:
* jsc.cpp:
* runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::hasLegacyProfiler):
* runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::supportsLegacyProfiling): Deleted.

Source/WebCore:

JavaScriptCore now provides a sampling profiler and it is enabled
by all ports. Web Inspector switched months ago to using the
sampling profiler and displaying its data. Remove the legacy
profiler, as it is no longer being used by anything other then
console.profile and tests. We will update console.profile's
behavior soon to have new behavior and use the sampling data.

* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* ForwardingHeaders/profiler/LegacyProfiler.h: Removed.
* WebCore.xcodeproj/project.pbxproj:
* bindings/js/JSCustomXPathNSResolver.cpp:
* bindings/js/JSDOMWindowBase.cpp:
(WebCore::JSDOMWindowBase::supportsLegacyProfiling): Deleted.
(WebCore::JSDOMWindowBase::supportsRichSourceInfo): Deleted.
* bindings/js/JSDOMWindowBase.h:
* bindings/js/JSWorkerGlobalScopeBase.cpp:
(WebCore::JSWorkerGlobalScopeBase::supportsLegacyProfiling): Deleted.
* bindings/js/JSWorkerGlobalScopeBase.h:
* bindings/js/ScriptCachedFrameData.cpp:
* bindings/js/ScriptController.cpp:
(WebCore::ScriptController::clearWindowShell): Deleted.
* bindings/js/ScriptProfile.h: Removed.
* bindings/js/ScriptProfileNode.h: Removed.
* bindings/scripts/CodeGeneratorJS.pm:
(AddClassForwardIfNeeded): Deleted.
* bindings/scripts/test/JS/JSTestObj.cpp:
(WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg): Deleted.
(WebCore::jsTestObjPrototypeFunctionMethodReturningSequence): Deleted.
* bindings/scripts/test/TestObj.idl:
* css/CSSParser.cpp:
* dom/Document.cpp:
* inspector/InspectorConsoleInstrumentation.h:
(WebCore::InspectorInstrumentation::stopProfiling):
* inspector/InspectorController.cpp:
(WebCore::InspectorController::InspectorController):
(WebCore::InspectorController::legacyProfilerEnabled): Deleted.
(WebCore::InspectorController::setLegacyProfilerEnabled): Deleted.
* inspector/InspectorController.h:
* inspector/InspectorInstrumentation.cpp:
(WebCore::InspectorInstrumentation::stopProfilingImpl):
* inspector/InspectorInstrumentation.h:
* inspector/InspectorTimelineAgent.cpp:
(WebCore::InspectorTimelineAgent::startFromConsole):
(WebCore::InspectorTimelineAgent::stopFromConsole):
* inspector/InspectorTimelineAgent.h:
* inspector/PageDebuggerAgent.cpp:
* inspector/PageRuntimeAgent.cpp:
* inspector/ScriptProfile.idl: Removed.
* inspector/ScriptProfileNode.idl: Removed.
* inspector/TimelineRecordFactory.cpp:
(WebCore::buildAggregateCallInfoInspectorObject): Deleted.
(WebCore::buildInspectorObject): Deleted.
(WebCore::buildProfileInspectorObject): Deleted.
(WebCore::TimelineRecordFactory::appendProfile): Deleted.
* inspector/TimelineRecordFactory.h:
* page/DOMWindow.cpp:
* page/Page.cpp:
* page/PageConsoleClient.cpp:
(WebCore::PageConsoleClient::profileEnd):
(WebCore::PageConsoleClient::clearProfiles): Deleted.
* page/PageConsoleClient.h:
* testing/Internals.cpp:
(WebCore::Internals::resetToConsistentState): Deleted.
(WebCore::Internals::consoleProfiles): Deleted.
(WebCore::Internals::setLegacyJavaScriptProfilingEnabled): Deleted.
* testing/Internals.h:
* testing/Internals.idl:

Source/WebKit/win:

* Interfaces/IWebInspector.idl:
* WebCoreStatistics.cpp:
* WebInspector.cpp:
(WebInspector::isJavaScriptProfilingEnabled): Deleted.
(WebInspector::setJavaScriptProfilingEnabled): Deleted.
* WebInspector.h:
* WebView.cpp:

LayoutTests:

* fast/profiler/anonymous-event-handler-expected.txt: Removed.
* fast/profiler/anonymous-event-handler.html: Removed.
* fast/profiler/anonymous-function-called-from-different-contexts-expected.txt: Removed.
* fast/profiler/anonymous-function-called-from-different-contexts.html: Removed.
* fast/profiler/anonymous-function-calls-built-in-functions-expected.txt: Removed.
* fast/profiler/anonymous-function-calls-built-in-functions.html: Removed.
* fast/profiler/anonymous-function-calls-eval-expected.txt: Removed.
* fast/profiler/anonymous-function-calls-eval.html: Removed.
* fast/profiler/anonymous-functions-with-display-names-expected.txt: Removed.
* fast/profiler/anonymous-functions-with-display-names.html: Removed.
* fast/profiler/apply-expected.txt: Removed.
* fast/profiler/apply.html: Removed.
* fast/profiler/built-in-function-calls-anonymous-expected.txt: Removed.
* fast/profiler/built-in-function-calls-anonymous.html: Removed.
* fast/profiler/built-in-function-calls-user-defined-function-expected.txt: Removed.
* fast/profiler/built-in-function-calls-user-defined-function.html: Removed.
* fast/profiler/call-expected.txt: Removed.
* fast/profiler/call-register-leak-expected.txt: Removed.
* fast/profiler/call-register-leak.html: Removed.
* fast/profiler/call.html: Removed.
* fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt: Removed.
* fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html: Removed.
* fast/profiler/compare-multiple-profiles-expected.txt: Removed.
* fast/profiler/compare-multiple-profiles.html: Removed.
* fast/profiler/constructor-expected.txt: Removed.
* fast/profiler/constructor.html: Removed.
* fast/profiler/dead-time-expected.txt: Removed.
* fast/profiler/dead-time.html: Removed.
* fast/profiler/document-dot-write-expected.txt: Removed.
* fast/profiler/document-dot-write.html: Removed.
* fast/profiler/event-handler-expected.txt: Removed.
* fast/profiler/event-handler.html: Removed.
* fast/profiler/execution-context-and-eval-on-same-line-expected.txt: Removed.
* fast/profiler/execution-context-and-eval-on-same-line.html: Removed.
* fast/profiler/inline-event-handler-expected.txt: Removed.
* fast/profiler/inline-event-handler.html: Removed.
* fast/profiler/many-calls-in-the-same-scope-expected.txt: Removed.
* fast/profiler/many-calls-in-the-same-scope.html: Removed.
* fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt: Removed.
* fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html: Removed.
* fast/profiler/multiple-and-different-scoped-function-calls-expected.txt: Removed.
* fast/profiler/multiple-and-different-scoped-function-calls.html: Removed.
* fast/profiler/multiple-anonymous-functions-called-from-the-same-function-expected.txt: Removed.
* fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html: Removed.
* fast/profiler/multiple-frames-expected.txt: Removed.
* fast/profiler/multiple-frames.html: Removed.
* fast/profiler/named-functions-with-display-names-expected.txt: Removed.
* fast/profiler/named-functions-with-display-names.html: Removed.
* fast/profiler/nested-anonymous-functon-expected.txt: Removed.
* fast/profiler/nested-anonymous-functon.html: Removed.
* fast/profiler/nested-start-and-stop-profiler-expected.txt: Removed.
* fast/profiler/nested-start-and-stop-profiler.html: Removed.
* fast/profiler/no-execution-context-expected.txt: Removed.
* fast/profiler/no-execution-context.html: Removed.
* fast/profiler/one-execution-context-expected.txt: Removed.
* fast/profiler/one-execution-context.html: Removed.
* fast/profiler/profile-calls-in-included-file-expected.txt: Removed.
* fast/profiler/profile-calls-in-included-file.html: Removed.
* fast/profiler/profile-with-no-title-expected.txt: Removed.
* fast/profiler/profile-with-no-title.html: Removed.
* fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt: Removed.
* fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html: Removed.
* fast/profiler/profiling-from-a-nested-location-expected.txt: Removed.
* fast/profiler/profiling-from-a-nested-location.html: Removed.
* fast/profiler/resources/other-frame.html: Removed.
* fast/profiler/resources/other-window.html: Removed.
* fast/profiler/resources/profiler-test-JS-resources.js: Removed.
* fast/profiler/simple-event-call-expected.txt: Removed.
* fast/profiler/simple-event-call.html: Removed.
* fast/profiler/simple-no-level-change-expected.txt: Removed.
* fast/profiler/simple-no-level-change.html: Removed.
* fast/profiler/start-and-stop-profiler-multiple-times-expected.txt: Removed.
* fast/profiler/start-and-stop-profiler-multiple-times.html: Removed.
* fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt: Removed.
* fast/profiler/start-and-stop-profiling-in-the-same-function.html: Removed.
* fast/profiler/start-but-dont-stop-profiling-expected.txt: Removed.
* fast/profiler/start-but-dont-stop-profiling.html: Removed.
* fast/profiler/stop-profiling-after-setTimeout-expected.txt: Removed.
* fast/profiler/stop-profiling-after-setTimeout.html: Removed.
* fast/profiler/stop-then-function-call-expected.txt: Removed.
* fast/profiler/stop-then-function-call.html: Removed.
* fast/profiler/throw-exception-from-eval-expected.txt: Removed.
* fast/profiler/throw-exception-from-eval.html-disabled: Removed.
* fast/profiler/two-execution-contexts-expected.txt: Removed.
* fast/profiler/two-execution-contexts.html: Removed.
* fast/profiler/user-defined-function-calls-built-in-functions-expected.txt: Removed.
* fast/profiler/user-defined-function-calls-built-in-functions.html: Removed.
* fast/profiler/window-dot-eval-expected.txt: Removed.
* fast/profiler/window-dot-eval.html: Removed.
* platform/efl/TestExpectations:
* platform/gtk/TestExpectations:
* platform/ios-simulator/TestExpectations:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@201237 268f45cc-cd09-0410-ab3c-d52691b4dbfc

147 files changed:
ChangeLog
LayoutTests/ChangeLog
LayoutTests/fast/profiler/anonymous-event-handler-expected.txt [deleted file]
LayoutTests/fast/profiler/anonymous-event-handler.html [deleted file]
LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts-expected.txt [deleted file]
LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts.html [deleted file]
LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions-expected.txt [deleted file]
LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions.html [deleted file]
LayoutTests/fast/profiler/anonymous-function-calls-eval-expected.txt [deleted file]
LayoutTests/fast/profiler/anonymous-function-calls-eval.html [deleted file]
LayoutTests/fast/profiler/anonymous-functions-with-display-names-expected.txt [deleted file]
LayoutTests/fast/profiler/anonymous-functions-with-display-names.html [deleted file]
LayoutTests/fast/profiler/apply-expected.txt [deleted file]
LayoutTests/fast/profiler/apply.html [deleted file]
LayoutTests/fast/profiler/built-in-function-calls-anonymous-expected.txt [deleted file]
LayoutTests/fast/profiler/built-in-function-calls-anonymous.html [deleted file]
LayoutTests/fast/profiler/built-in-function-calls-user-defined-function-expected.txt [deleted file]
LayoutTests/fast/profiler/built-in-function-calls-user-defined-function.html [deleted file]
LayoutTests/fast/profiler/call-expected.txt [deleted file]
LayoutTests/fast/profiler/call-register-leak-expected.txt [deleted file]
LayoutTests/fast/profiler/call-register-leak.html [deleted file]
LayoutTests/fast/profiler/call.html [deleted file]
LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt [deleted file]
LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html [deleted file]
LayoutTests/fast/profiler/compare-multiple-profiles-expected.txt [deleted file]
LayoutTests/fast/profiler/compare-multiple-profiles.html [deleted file]
LayoutTests/fast/profiler/constructor-expected.txt [deleted file]
LayoutTests/fast/profiler/constructor.html [deleted file]
LayoutTests/fast/profiler/dead-time-expected.txt [deleted file]
LayoutTests/fast/profiler/dead-time.html [deleted file]
LayoutTests/fast/profiler/document-dot-write-expected.txt [deleted file]
LayoutTests/fast/profiler/document-dot-write.html [deleted file]
LayoutTests/fast/profiler/event-handler-expected.txt [deleted file]
LayoutTests/fast/profiler/event-handler.html [deleted file]
LayoutTests/fast/profiler/execution-context-and-eval-on-same-line-expected.txt [deleted file]
LayoutTests/fast/profiler/execution-context-and-eval-on-same-line.html [deleted file]
LayoutTests/fast/profiler/inline-event-handler-expected.txt [deleted file]
LayoutTests/fast/profiler/inline-event-handler.html [deleted file]
LayoutTests/fast/profiler/many-calls-in-the-same-scope-expected.txt [deleted file]
LayoutTests/fast/profiler/many-calls-in-the-same-scope.html [deleted file]
LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt [deleted file]
LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html [deleted file]
LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls-expected.txt [deleted file]
LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls.html [deleted file]
LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function-expected.txt [deleted file]
LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html [deleted file]
LayoutTests/fast/profiler/multiple-frames-expected.txt [deleted file]
LayoutTests/fast/profiler/multiple-frames.html [deleted file]
LayoutTests/fast/profiler/named-functions-with-display-names-expected.txt [deleted file]
LayoutTests/fast/profiler/named-functions-with-display-names.html [deleted file]
LayoutTests/fast/profiler/nested-anonymous-functon-expected.txt [deleted file]
LayoutTests/fast/profiler/nested-anonymous-functon.html [deleted file]
LayoutTests/fast/profiler/nested-start-and-stop-profiler-expected.txt [deleted file]
LayoutTests/fast/profiler/nested-start-and-stop-profiler.html [deleted file]
LayoutTests/fast/profiler/no-execution-context-expected.txt [deleted file]
LayoutTests/fast/profiler/no-execution-context.html [deleted file]
LayoutTests/fast/profiler/one-execution-context-expected.txt [deleted file]
LayoutTests/fast/profiler/one-execution-context.html [deleted file]
LayoutTests/fast/profiler/profile-calls-in-included-file-expected.txt [deleted file]
LayoutTests/fast/profiler/profile-calls-in-included-file.html [deleted file]
LayoutTests/fast/profiler/profile-with-no-title-expected.txt [deleted file]
LayoutTests/fast/profiler/profile-with-no-title.html [deleted file]
LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt [deleted file]
LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html [deleted file]
LayoutTests/fast/profiler/profiling-from-a-nested-location-expected.txt [deleted file]
LayoutTests/fast/profiler/profiling-from-a-nested-location.html [deleted file]
LayoutTests/fast/profiler/resources/other-frame.html [deleted file]
LayoutTests/fast/profiler/resources/other-window.html [deleted file]
LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js [deleted file]
LayoutTests/fast/profiler/simple-event-call-expected.txt [deleted file]
LayoutTests/fast/profiler/simple-event-call.html [deleted file]
LayoutTests/fast/profiler/simple-no-level-change-expected.txt [deleted file]
LayoutTests/fast/profiler/simple-no-level-change.html [deleted file]
LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times-expected.txt [deleted file]
LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times.html [deleted file]
LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt [deleted file]
LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function.html [deleted file]
LayoutTests/fast/profiler/start-but-dont-stop-profiling-expected.txt [deleted file]
LayoutTests/fast/profiler/start-but-dont-stop-profiling.html [deleted file]
LayoutTests/fast/profiler/stop-profiling-after-setTimeout-expected.txt [deleted file]
LayoutTests/fast/profiler/stop-profiling-after-setTimeout.html [deleted file]
LayoutTests/fast/profiler/stop-then-function-call-expected.txt [deleted file]
LayoutTests/fast/profiler/stop-then-function-call.html [deleted file]
LayoutTests/fast/profiler/throw-exception-from-eval-expected.txt [deleted file]
LayoutTests/fast/profiler/throw-exception-from-eval.html-disabled [deleted file]
LayoutTests/fast/profiler/two-execution-contexts-expected.txt [deleted file]
LayoutTests/fast/profiler/two-execution-contexts.html [deleted file]
LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions-expected.txt [deleted file]
LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions.html [deleted file]
LayoutTests/fast/profiler/window-dot-eval-expected.txt [deleted file]
LayoutTests/fast/profiler/window-dot-eval.html [deleted file]
LayoutTests/platform/efl/TestExpectations
LayoutTests/platform/gtk/TestExpectations
LayoutTests/platform/ios-simulator/TestExpectations
ManualTests/inspector/profiler-test-call.html [deleted file]
ManualTests/inspector/profiler-test-many-calls-in-the-same-scope.html [deleted file]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/inspector/protocol/Timeline.json
Source/JavaScriptCore/jsc.cpp
Source/JavaScriptCore/runtime/JSGlobalObject.cpp
Source/JavaScriptCore/runtime/JSGlobalObject.h
Source/WebCore/CMakeLists.txt
Source/WebCore/ChangeLog
Source/WebCore/DerivedSources.cpp
Source/WebCore/DerivedSources.make
Source/WebCore/ForwardingHeaders/profiler/LegacyProfiler.h [deleted file]
Source/WebCore/WebCore.xcodeproj/project.pbxproj
Source/WebCore/bindings/js/JSCustomXPathNSResolver.cpp
Source/WebCore/bindings/js/JSDOMWindowBase.cpp
Source/WebCore/bindings/js/JSDOMWindowBase.h
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.cpp
Source/WebCore/bindings/js/JSWorkerGlobalScopeBase.h
Source/WebCore/bindings/js/ScriptCachedFrameData.cpp
Source/WebCore/bindings/js/ScriptController.cpp
Source/WebCore/bindings/js/ScriptProfile.h [deleted file]
Source/WebCore/bindings/js/ScriptProfileNode.h [deleted file]
Source/WebCore/bindings/scripts/CodeGeneratorJS.pm
Source/WebCore/bindings/scripts/test/JS/JSTestObj.cpp
Source/WebCore/bindings/scripts/test/TestObj.idl
Source/WebCore/css/CSSParser.cpp
Source/WebCore/dom/Document.cpp
Source/WebCore/inspector/InspectorConsoleInstrumentation.h
Source/WebCore/inspector/InspectorController.cpp
Source/WebCore/inspector/InspectorController.h
Source/WebCore/inspector/InspectorInstrumentation.cpp
Source/WebCore/inspector/InspectorInstrumentation.h
Source/WebCore/inspector/InspectorTimelineAgent.cpp
Source/WebCore/inspector/InspectorTimelineAgent.h
Source/WebCore/inspector/PageDebuggerAgent.cpp
Source/WebCore/inspector/PageRuntimeAgent.cpp
Source/WebCore/inspector/ScriptProfile.idl [deleted file]
Source/WebCore/inspector/ScriptProfileNode.idl [deleted file]
Source/WebCore/inspector/TimelineRecordFactory.cpp
Source/WebCore/inspector/TimelineRecordFactory.h
Source/WebCore/page/DOMWindow.cpp
Source/WebCore/page/Page.cpp
Source/WebCore/page/PageConsoleClient.cpp
Source/WebCore/page/PageConsoleClient.h
Source/WebCore/testing/Internals.cpp
Source/WebCore/testing/Internals.h
Source/WebCore/testing/Internals.idl
Source/WebKit/win/ChangeLog
Source/WebKit/win/Interfaces/IWebInspector.idl
Source/WebKit/win/WebCoreStatistics.cpp
Source/WebKit/win/WebInspector.cpp
Source/WebKit/win/WebInspector.h
Source/WebKit/win/WebView.cpp

index 4f897e55925f40e7fabb10c92f9233d9f2b2a32d..32e0e0bc1f86441be2d529484abbe253e8b52c4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove LegacyProfiler
+        https://bugs.webkit.org/show_bug.cgi?id=153565
+
+        Reviewed by Saam Barati.
+
+        * ManualTests/inspector/profiler-test-call.html: Removed.
+        * ManualTests/inspector/profiler-test-many-calls-in-the-same-scope.html: Removed.
+
 2016-05-18  Gwang Yoon Hwang  <yoon@igalia.com>
 
         [GStreamer] Use FakeSink to get a decoded texture from a pipeline
index 2a01545ad25bcc1db97c7983d76520b39b7bde55..8a0a028be85961f59e4093bc98831e10c52f16c9 100644 (file)
@@ -1,3 +1,103 @@
+2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove LegacyProfiler
+        https://bugs.webkit.org/show_bug.cgi?id=153565
+
+        Reviewed by Saam Barati.
+
+        * fast/profiler/anonymous-event-handler-expected.txt: Removed.
+        * fast/profiler/anonymous-event-handler.html: Removed.
+        * fast/profiler/anonymous-function-called-from-different-contexts-expected.txt: Removed.
+        * fast/profiler/anonymous-function-called-from-different-contexts.html: Removed.
+        * fast/profiler/anonymous-function-calls-built-in-functions-expected.txt: Removed.
+        * fast/profiler/anonymous-function-calls-built-in-functions.html: Removed.
+        * fast/profiler/anonymous-function-calls-eval-expected.txt: Removed.
+        * fast/profiler/anonymous-function-calls-eval.html: Removed.
+        * fast/profiler/anonymous-functions-with-display-names-expected.txt: Removed.
+        * fast/profiler/anonymous-functions-with-display-names.html: Removed.
+        * fast/profiler/apply-expected.txt: Removed.
+        * fast/profiler/apply.html: Removed.
+        * fast/profiler/built-in-function-calls-anonymous-expected.txt: Removed.
+        * fast/profiler/built-in-function-calls-anonymous.html: Removed.
+        * fast/profiler/built-in-function-calls-user-defined-function-expected.txt: Removed.
+        * fast/profiler/built-in-function-calls-user-defined-function.html: Removed.
+        * fast/profiler/call-expected.txt: Removed.
+        * fast/profiler/call-register-leak-expected.txt: Removed.
+        * fast/profiler/call-register-leak.html: Removed.
+        * fast/profiler/call.html: Removed.
+        * fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt: Removed.
+        * fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html: Removed.
+        * fast/profiler/compare-multiple-profiles-expected.txt: Removed.
+        * fast/profiler/compare-multiple-profiles.html: Removed.
+        * fast/profiler/constructor-expected.txt: Removed.
+        * fast/profiler/constructor.html: Removed.
+        * fast/profiler/dead-time-expected.txt: Removed.
+        * fast/profiler/dead-time.html: Removed.
+        * fast/profiler/document-dot-write-expected.txt: Removed.
+        * fast/profiler/document-dot-write.html: Removed.
+        * fast/profiler/event-handler-expected.txt: Removed.
+        * fast/profiler/event-handler.html: Removed.
+        * fast/profiler/execution-context-and-eval-on-same-line-expected.txt: Removed.
+        * fast/profiler/execution-context-and-eval-on-same-line.html: Removed.
+        * fast/profiler/inline-event-handler-expected.txt: Removed.
+        * fast/profiler/inline-event-handler.html: Removed.
+        * fast/profiler/many-calls-in-the-same-scope-expected.txt: Removed.
+        * fast/profiler/many-calls-in-the-same-scope.html: Removed.
+        * fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt: Removed.
+        * fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html: Removed.
+        * fast/profiler/multiple-and-different-scoped-function-calls-expected.txt: Removed.
+        * fast/profiler/multiple-and-different-scoped-function-calls.html: Removed.
+        * fast/profiler/multiple-anonymous-functions-called-from-the-same-function-expected.txt: Removed.
+        * fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html: Removed.
+        * fast/profiler/multiple-frames-expected.txt: Removed.
+        * fast/profiler/multiple-frames.html: Removed.
+        * fast/profiler/named-functions-with-display-names-expected.txt: Removed.
+        * fast/profiler/named-functions-with-display-names.html: Removed.
+        * fast/profiler/nested-anonymous-functon-expected.txt: Removed.
+        * fast/profiler/nested-anonymous-functon.html: Removed.
+        * fast/profiler/nested-start-and-stop-profiler-expected.txt: Removed.
+        * fast/profiler/nested-start-and-stop-profiler.html: Removed.
+        * fast/profiler/no-execution-context-expected.txt: Removed.
+        * fast/profiler/no-execution-context.html: Removed.
+        * fast/profiler/one-execution-context-expected.txt: Removed.
+        * fast/profiler/one-execution-context.html: Removed.
+        * fast/profiler/profile-calls-in-included-file-expected.txt: Removed.
+        * fast/profiler/profile-calls-in-included-file.html: Removed.
+        * fast/profiler/profile-with-no-title-expected.txt: Removed.
+        * fast/profiler/profile-with-no-title.html: Removed.
+        * fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt: Removed.
+        * fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html: Removed.
+        * fast/profiler/profiling-from-a-nested-location-expected.txt: Removed.
+        * fast/profiler/profiling-from-a-nested-location.html: Removed.
+        * fast/profiler/resources/other-frame.html: Removed.
+        * fast/profiler/resources/other-window.html: Removed.
+        * fast/profiler/resources/profiler-test-JS-resources.js: Removed.
+        * fast/profiler/simple-event-call-expected.txt: Removed.
+        * fast/profiler/simple-event-call.html: Removed.
+        * fast/profiler/simple-no-level-change-expected.txt: Removed.
+        * fast/profiler/simple-no-level-change.html: Removed.
+        * fast/profiler/start-and-stop-profiler-multiple-times-expected.txt: Removed.
+        * fast/profiler/start-and-stop-profiler-multiple-times.html: Removed.
+        * fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt: Removed.
+        * fast/profiler/start-and-stop-profiling-in-the-same-function.html: Removed.
+        * fast/profiler/start-but-dont-stop-profiling-expected.txt: Removed.
+        * fast/profiler/start-but-dont-stop-profiling.html: Removed.
+        * fast/profiler/stop-profiling-after-setTimeout-expected.txt: Removed.
+        * fast/profiler/stop-profiling-after-setTimeout.html: Removed.
+        * fast/profiler/stop-then-function-call-expected.txt: Removed.
+        * fast/profiler/stop-then-function-call.html: Removed.
+        * fast/profiler/throw-exception-from-eval-expected.txt: Removed.
+        * fast/profiler/throw-exception-from-eval.html-disabled: Removed.
+        * fast/profiler/two-execution-contexts-expected.txt: Removed.
+        * fast/profiler/two-execution-contexts.html: Removed.
+        * fast/profiler/user-defined-function-calls-built-in-functions-expected.txt: Removed.
+        * fast/profiler/user-defined-function-calls-built-in-functions.html: Removed.
+        * fast/profiler/window-dot-eval-expected.txt: Removed.
+        * fast/profiler/window-dot-eval.html: Removed.
+        * platform/efl/TestExpectations:
+        * platform/gtk/TestExpectations:
+        * platform/ios-simulator/TestExpectations:
+
 2016-05-20  Zalan Bujtas  <zalan@apple.com>
 
         `width: 1%` on nested table cell causes its table to hog horizontal space
diff --git a/LayoutTests/fast/profiler/anonymous-event-handler-expected.txt b/LayoutTests/fast/profiler/anonymous-event-handler-expected.txt
deleted file mode 100644 (file)
index 848bf38..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-This page has an anonymous event handler. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. It should show the anonymous function at the same level as the onload handler. 
-
-Profile title: Anonymous event handler
-Thread_1 (no file) (line 0:0)
-   startTest anonymous-event-handler.html (line 10:19)
-      getElementById (no file) (line 0:0)
-      click (no file) (line 0:0)
-         onclick anonymous-event-handler.html (line 15:51)
-            insertNewText profiler-test-JS-resources.js (line 17:23)
-               createElement (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/anonymous-event-handler.html b/LayoutTests/fast/profiler/anonymous-event-handler.html
deleted file mode 100644 (file)
index 2bcffa5..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Anonymous event handler");
-
-    var buttonWithAnonymousHandler = document.getElementById("buttonWithAnAnonymousEventHandler")
-    buttonWithAnonymousHandler.onclick = function () {
-        insertNewText();
-    }
-
-    buttonWithAnonymousHandler.click();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has an anonymous event handler.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  It should show the anonymous function at the same level as the onload
-handler.
-<input type="button" id="buttonWithAnAnonymousEventHandler" value="Button with an anonymous event handler">
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts-expected.txt b/LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts-expected.txt
deleted file mode 100644 (file)
index 3cbbf04..0000000
+++ /dev/null
@@ -1,24 +0,0 @@
-This page's JavaScript calls an anonymous function from different contexts. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show three children, an anonymous function, script context, and the endTest call.
-
-Profile title: Same anonymous function called from different contexts
-Thread_1 (no file) (line 0:0)
-   startTest anonymous-function-called-from-different-contexts.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      eval (no file) (line 0:0)
-         (program) (no file) (line 1:1)
-            anonymousFunction profiler-test-JS-resources.js (line 29:34)
-               insertNewText profiler-test-JS-resources.js (line 17:23)
-                  createElement (no file) (line 0:0)
-                  createTextNode (no file) (line 0:0)
-                  appendChild (no file) (line 0:0)
-                  getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts.html b/LayoutTests/fast/profiler/anonymous-function-called-from-different-contexts.html
deleted file mode 100644 (file)
index 3ab8317..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Same anonymous function called from different contexts");
-
-    anonymousFunction();
-    eval("anonymousFunction()");
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls an anonymous function from different contexts.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  Beneath onload and startTest it should show three children, an
-anonymous function, script context, and the endTest call.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions-expected.txt b/LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions-expected.txt
deleted file mode 100644 (file)
index 9120600..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page has an anonymous JavaScript function that calls built-in functions. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show three children, an anonymous function, script context, and the endTest call.
-
-Profile title: Anonymous function calls built-in functions
-Thread_1 (no file) (line 0:0)
-   startTest anonymous-function-calls-built-in-functions.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions.html b/LayoutTests/fast/profiler/anonymous-function-calls-built-in-functions.html
deleted file mode 100644 (file)
index 5bc73b5..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Anonymous function calls built-in functions");
-    anonymousFunction();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has an anonymous JavaScript function that calls built-in functions.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  Beneath onload and startTest it should show three children, an
-anonymous function, script context, and the endTest call.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/anonymous-function-calls-eval-expected.txt b/LayoutTests/fast/profiler/anonymous-function-calls-eval-expected.txt
deleted file mode 100644 (file)
index 9a0fd4b..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-This page's JavaScript calls an anonymous function which calls eval(). 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. Beneath onload and startTest it should show an (anonymous function) which has a (program) child.
-
-Profile title: Anonymous function calles eval
-Thread_1 (no file) (line 0:0)
-   startTest anonymous-function-calls-eval.html (line 10:19)
-      variableThatPointsToAnAnonymousFunction anonymous-function-calls-eval.html (line 14:59)
-         eval (no file) (line 0:0)
-            (program) (no file) (line 1:1)
-               insertNewText profiler-test-JS-resources.js (line 17:23)
-                  createElement (no file) (line 0:0)
-                  createTextNode (no file) (line 0:0)
-                  appendChild (no file) (line 0:0)
-                  getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/anonymous-function-calls-eval.html b/LayoutTests/fast/profiler/anonymous-function-calls-eval.html
deleted file mode 100644 (file)
index 19f7666..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Anonymous function calles eval");
-
-    var variableThatPointsToAnAnonymousFunction = function() {
-        eval("insertNewText()");
-    }
-
-    variableThatPointsToAnAnonymousFunction();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls an anonymous function which calls eval().
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  Beneath onload and startTest it should show an (anonymous function)
-which has a (program) child.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/anonymous-functions-with-display-names-expected.txt b/LayoutTests/fast/profiler/anonymous-functions-with-display-names-expected.txt
deleted file mode 100644 (file)
index 7b8d807..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page's JavaScript calls anonymous functions with display names. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. You should see functions named "[x] iterations function", and no anonymous functions.
-
-Profile title: Anonymous functions with display names
-Thread_1 (no file) (line 0:0)
-   startTest anonymous-functions-with-display-names.html (line 22:19)
-      anonymousFunctionGenerator anonymous-functions-with-display-names.html (line 10:36)
-      0 iterations function anonymous-functions-with-display-names.html (line 12:59)
-      1 iterations function anonymous-functions-with-display-names.html (line 12:59)
-      2 iterations function anonymous-functions-with-display-names.html (line 12:59)
-      20 iterations function anonymous-functions-with-display-names.html (line 12:59)
-      1000 iterations function anonymous-functions-with-display-names.html (line 12:59)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/anonymous-functions-with-display-names.html b/LayoutTests/fast/profiler/anonymous-functions-with-display-names.html
deleted file mode 100644 (file)
index 7b9fc34..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function anonymousFunctionGenerator(iterations)
-{
-    var variableThatPointsToAnAnonymousFunction = function()
-    {
-        for (var i = 0; i < iterations; ++i) ;
-    }
-    
-    variableThatPointsToAnAnonymousFunction.displayName = iterations + " iterations function";
-    
-    return variableThatPointsToAnAnonymousFunction;
-}
-
-function startTest()
-{
-    console.profile("Anonymous functions with display names");
-
-    anonymousFunctionGenerator(0)();
-    anonymousFunctionGenerator(1)();
-    anonymousFunctionGenerator(2)();
-    anonymousFunctionGenerator(20)();
-    anonymousFunctionGenerator(1000)();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls anonymous functions with display names.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  You should see functions named "[x] iterations function", and no anonymous functions.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/apply-expected.txt b/LayoutTests/fast/profiler/apply-expected.txt
deleted file mode 100644 (file)
index 708bd06..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This page's JavaScript has a call to apply() in it. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeInteriorFunction() and a call to apply().
-
-Profile title: Using the apply() method
-Thread_1 (no file) (line 0:0)
-   startTest apply.html (line 10:19)
-      fakeObject apply.html (line 17:21)
-         fakeInteriorFunction apply.html (line 23:30)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/apply.html b/LayoutTests/fast/profiler/apply.html
deleted file mode 100644 (file)
index 98d41ab..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Using the apply() method");
-    var myObject = new fakeObject(1, 2);
-    endTest();
-}
-
-function fakeObject (x, y)
-{
-    this.x = x;
-    fakeInteriorFunction.apply(this, arguments);
-}
-
-function fakeInteriorFunction(x, y)
-{
-    this.y = y;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has a call to apply() in it.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to fakeInteriorFunction() and
-a call to apply().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/built-in-function-calls-anonymous-expected.txt b/LayoutTests/fast/profiler/built-in-function-calls-anonymous-expected.txt
deleted file mode 100644 (file)
index 2a6baf3..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-This page uses a built-in function to call an anonymous function. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile map() should be the sibling of an (anonymous function) which has arrayOperatorFunction() as a child.
-
-Profile title: Built-in function calls an anonymous function
-Thread_1 (no file) (line 0:0)
-   startTest built-in-function-calls-anonymous.html (line 10:19)
-      Array (no file) (line 0:0)
-      map (no file) (line 0:0)
-         Object (no file) (line 0:0)
-         toLength (no file) (line 0:0)
-            toInteger (no file) (line 0:0)
-               Number (no file) (line 0:0)
-               (anonymous function) (no file) (line 0:0)
-         isArray (no file) (line 0:0)
-         (anonymous function) (no file) (line 0:0)
-         speciesGetter (no file) (line 0:0)
-         Array (no file) (line 0:0)
-         myFunction built-in-function-calls-anonymous.html (line 14:30)
-            arrayOperatorFunction profiler-test-JS-resources.js (line 25:31)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/built-in-function-calls-anonymous.html b/LayoutTests/fast/profiler/built-in-function-calls-anonymous.html
deleted file mode 100644 (file)
index 05aed48..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Built-in function calls an anonymous function");
-
-    var myFunction = function(arrayElement) {
-        return arrayOperatorFunction(arrayElement);
-    }
-
-    var myArray = new Array (0, 1, 2);
-    myArray.map(myFunction);
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page uses a built-in function to call an anonymous function.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile map() should be the sibling of an (anonymous function)
-which has arrayOperatorFunction() as a child.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/built-in-function-calls-user-defined-function-expected.txt b/LayoutTests/fast/profiler/built-in-function-calls-user-defined-function-expected.txt
deleted file mode 100644 (file)
index 57155e7..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-This page uses a built-in function to call a user defined function. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile map() should have arrayOperatorFunction() as a child.
-
-Profile title: Built-in function calls a user defined function
-Thread_1 (no file) (line 0:0)
-   startTest built-in-function-calls-user-defined-function.html (line 10:19)
-      Array (no file) (line 0:0)
-      map (no file) (line 0:0)
-         Object (no file) (line 0:0)
-         toLength (no file) (line 0:0)
-            toInteger (no file) (line 0:0)
-               Number (no file) (line 0:0)
-               (anonymous function) (no file) (line 0:0)
-         isArray (no file) (line 0:0)
-         (anonymous function) (no file) (line 0:0)
-         speciesGetter (no file) (line 0:0)
-         Array (no file) (line 0:0)
-         arrayOperatorFunction profiler-test-JS-resources.js (line 25:31)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/built-in-function-calls-user-defined-function.html b/LayoutTests/fast/profiler/built-in-function-calls-user-defined-function.html
deleted file mode 100644 (file)
index c663b69..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Built-in function calls a user defined function");
-
-    var myArray = new Array (0, 1, 2);
-    myArray.map(arrayOperatorFunction);
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page uses a built-in function to call a user defined function.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile map() should have arrayOperatorFunction() as a child.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/call-expected.txt b/LayoutTests/fast/profiler/call-expected.txt
deleted file mode 100644 (file)
index fc86fd9..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This page's JavaScript has a call to call() in it. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeObject() with call() as its child and a fakeInteriorFunction() as call()'s child.
-
-Profile title: Using the call() method
-Thread_1 (no file) (line 0:0)
-   startTest call.html (line 10:19)
-      fakeObject call.html (line 19:21)
-         fakeInteriorFunction call.html (line 25:30)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/call-register-leak-expected.txt b/LayoutTests/fast/profiler/call-register-leak-expected.txt
deleted file mode 100644 (file)
index d3647bf..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-This page tests that the generation of bytecode allocates registers correctly when profiling is enabled. To run the test manually, enable profiling in the web inspector and reload this page.
-
-PASS: localCallTest(1, 2) should be 2 and is.
-
-PASS: globalCallTest(1, 2) should be 2 and is.
-
-PASS: scopedCallTest(1, 2) should be 2 and is.
-
-PASS: resolveCallTest(1, 2) should be 2 and is.
-
-PASS: bracketCallTest(1, 2) should be 2 and is.
-
-PASS: dotCallTest(1, 2) should be 2 and is.
-
-PASS: newTest(1, 2) should be 2 and is.
-
-
diff --git a/LayoutTests/fast/profiler/call-register-leak.html b/LayoutTests/fast/profiler/call-register-leak.html
deleted file mode 100644 (file)
index 366b441..0000000
+++ /dev/null
@@ -1,105 +0,0 @@
-<body>
-<head>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function log(s)
-{
-    if (this.document)
-        document.getElementById("console").appendChild(document.createTextNode(s + "\n"));
-    else
-        print(s + "\n");
-}
-
-function shouldBe(a, aDescription, b)
-{
-    if (a === b)
-        log("PASS: " + aDescription + " should be " + b + " and is.\n");
-    else
-        log("FAIL: " + aDescription + " should be " + b + " but instead is " + a + ".\n");
-}
-
-function localCallTest(a, b)
-{
-    function localCall(o)
-    {
-        return o.toString();
-    }
-    return [localCall(a), b][1];
-}
-
-function globalCall(o)
-{
-    return o.toString();
-}
-
-function globalCallTest(a, b)
-{
-    return [globalCall(a), b][1];
-}
-
-function scopedCallTest(a, b)
-{
-    function scopedCall(o)
-    {
-        return o.toString();
-    }
-
-    function f()
-    {
-        return [scopedCall(a), b][1];
-    }
-
-    return f();
-}
-
-function resolveCallTest(a, b)
-{
-    o = { resolvedCall: function(o) { return o.toString(); }};
-    with (o) {
-        return [resolvedCall(o), b][1];
-    }
-}
-
-function bracketCallTest(a, b)
-{
-    return [a["toString"](), b][1];
-}
-
-function dotCallTest(a, b)
-{
-    return [a.toString(), b][1];
-}
-
-function testConstructor(o)
-{
-    return o.toString();
-}
-
-function newTest(a, b)
-{
-    return [new testConstructor(a), b][1];
-}
-
-function startTest()
-{
-    shouldBe(localCallTest(1, 2), "localCallTest(1, 2)", 2);
-    shouldBe(globalCallTest(1, 2), "globalCallTest(1, 2)", 2);
-    shouldBe(scopedCallTest(1, 2), "scopedCallTest(1, 2)", 2);
-    shouldBe(resolveCallTest(1, 2), "resolveCallTest(1, 2)", 2);
-    shouldBe(bracketCallTest(1, 2), "bracketCallTest(1, 2)", 2);
-    shouldBe(dotCallTest(1, 2), "dotCallTest(1, 2)", 2);
-    shouldBe(newTest(1, 2), "newTest(1, 2)", 2);
-}
-</script>
-</head>
-<body onload="startTest()">
-<p>
-This page tests that the generation of bytecode allocates registers correctly when profiling is enabled. To run the test manually, enable profiling in the web inspector and reload this page.
-</p>
-<pre id="console"></pre>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/call.html b/LayoutTests/fast/profiler/call.html
deleted file mode 100644 (file)
index 2105c7a..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Using the call() method");
-
-    var myObject = new fakeObject(1, 2);
-
-    endTest();
-}
-
-function fakeObject (x, y)
-{
-    this.x = x;
-    fakeInteriorFunction.call(this, y);
-}
-
-function fakeInteriorFunction(y)
-{
-    this.y = y;
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has a call to call() in it.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to fakeObject() with call() as
-its child and a fakeInteriorFunction() as call()'s child.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt b/LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope-expected.txt
deleted file mode 100644 (file)
index 6c2bb18..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This page's JavaScript starts profiling from within a function which is then called later from another context. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profiler you should see a call to indirection() and functionWichStartsAndStopsTheProfiler()
-
-Profile title: Calling the same function where the profile started from another function
-Thread_1 (no file) (line 0:0)
-   indirection calling-the-function-that-started-the-profiler-from-another-scope.html (line 17:21)
-      functionWichStartsAndStopsTheProfiler calling-the-function-that-started-the-profiler-from-another-scope.html (line 23:47)
-   functionWichStartsAndStopsTheProfiler calling-the-function-that-started-the-profiler-from-another-scope.html (line 23:47)
-   endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html b/LayoutTests/fast/profiler/calling-the-function-that-started-the-profiler-from-another-scope.html
deleted file mode 100644 (file)
index 57567f2..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    indirection();
-    functionWichStartsAndStopsTheProfiler();
-    endTest();
-}
-
-function indirection()
-{
-    functionWichStartsAndStopsTheProfiler();
-}
-
-var firstTime = true;
-function functionWichStartsAndStopsTheProfiler()
-{
-    if (firstTime) {
-        console.profile("Calling the same function where the profile started from another function");
-        firstTime = false;
-    }
-
-    for (var i = 0; i < 10000000; i++)
-        var b = i + 2;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript starts profiling from within a function which is then called
-later from another context.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profiler you should see a call to indirection() and
-functionWichStartsAndStopsTheProfiler()
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/compare-multiple-profiles-expected.txt b/LayoutTests/fast/profiler/compare-multiple-profiles-expected.txt
deleted file mode 100644 (file)
index c3bbe20..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-This page has multiple profiles with the same name. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. It should not crash or hang and there should be multiple runs of the same named profile.
-
-Profile title: Test
-Thread_1 (no file) (line 0:0)
-   startTest compare-multiple-profiles.html (line 22:19)
-      test compare-multiple-profiles.html (line 11:14)
-         test2 compare-multiple-profiles.html (line 17:15)
-
-Profile title: Test
-Thread_1 (no file) (line 0:0)
-   startTest compare-multiple-profiles.html (line 22:19)
-      test compare-multiple-profiles.html (line 11:14)
-         test2 compare-multiple-profiles.html (line 17:15)
-
-
diff --git a/LayoutTests/fast/profiler/compare-multiple-profiles.html b/LayoutTests/fast/profiler/compare-multiple-profiles.html
deleted file mode 100644 (file)
index a602b44..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-var j = 0;
-function test(len) {
-    for (var i = 0; i < len; ++i)
-        ++j;
-    test2(2000 - len);
-}
-
-function test2(len) {
-    for (var i = 0; i < len; ++i)
-        --j;
-}
-
-function startTest()
-{
-    console.profile("Test");
-    test(100);
-    console.profileEnd("Test");
-
-    console.profile("Test");
-    test(1000);
-    console.profileEnd("Test");
-
-    printProfilesDataWithoutTime();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has multiple profiles with the same name.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  It should not crash or hang and there should be multiple runs of the
-same named profile.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/constructor-expected.txt b/LayoutTests/fast/profiler/constructor-expected.txt
deleted file mode 100644 (file)
index 93d8963..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-This page's JavaScript has a call to new() in it. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeObject() and Array() in it.
-
-Profile title: Using a constructor.
-Thread_1 (no file) (line 0:0)
-   startTest constructor.html (line 10:19)
-      fakeObject constructor.html (line 19:21)
-         Array (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/constructor.html b/LayoutTests/fast/profiler/constructor.html
deleted file mode 100644 (file)
index bc63908..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Using a constructor.");
-
-    var myObject = new fakeObject(1, 2);
-
-    endTest();
-}
-
-function fakeObject (x, y)
-{
-    var myArray = new Array()
-    myArray[0] = 5;
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has a call to new() in it.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to fakeObject() and Array()
-in it.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/dead-time-expected.txt b/LayoutTests/fast/profiler/dead-time-expected.txt
deleted file mode 100644 (file)
index 1de64f6..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-This page's JavaScript Has some dead time in the profile. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a large amount of the % spent in (non-JavaScript).
-
-Profile title: Dead time in profile.
-Thread_1 (no file) (line 0:0)
-   onload dead-time.html (line 21:44)
-      startTest dead-time.html (line 12:19)
-         setTimeout (no file) (line 0:0)
-   (program) dead-time.html (line 1:1)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/dead-time.html b/LayoutTests/fast/profiler/dead-time.html
deleted file mode 100644 (file)
index a664ce0..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Dead time in profile.");
-    setTimeout("endTest()", 1234);
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript Has some dead time in the profile.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a large amount of the % spent in 
-(non-JavaScript).
-<div id="output"></div>
-</body>
-</html>
-
diff --git a/LayoutTests/fast/profiler/document-dot-write-expected.txt b/LayoutTests/fast/profiler/document-dot-write-expected.txt
deleted file mode 100644 (file)
index 849f1bd..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-
-Profile title: Call Document.write()
-Thread_1 (no file) (line 0:0)
-   startTest document-dot-write.html (line 10:19)
-      write (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/document-dot-write.html b/LayoutTests/fast/profiler/document-dot-write.html
deleted file mode 100644 (file)
index af54f40..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Call Document.write()");
-
-    document.write("<div id=\"output\"></div>");
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page calls document.write().
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  If there is a profile it should show write().
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/event-handler-expected.txt b/LayoutTests/fast/profiler/event-handler-expected.txt
deleted file mode 100644 (file)
index 15c48cd..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-This page has an event handler. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile insertnewText() should be a sibling to onload(). 
-
-Profile title: Event handler
-Thread_1 (no file) (line 0:0)
-   startTest event-handler.html (line 10:19)
-      getElementById (no file) (line 0:0)
-      addEventListener (no file) (line 0:0)
-      click (no file) (line 0:0)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/event-handler.html b/LayoutTests/fast/profiler/event-handler.html
deleted file mode 100644 (file)
index f6a461d..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{    
-    console.profile("Event handler");
-
-    var myButton = document.getElementById("buttonWithAnEventListener");
-    myButton.addEventListener("click", insertNewText, false);
-    myButton.click();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has an event handler.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile insertnewText() should be a sibling to onload().
-<input type="button" id="buttonWithAnEventListener" value="Button with an event listener">
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/execution-context-and-eval-on-same-line-expected.txt b/LayoutTests/fast/profiler/execution-context-and-eval-on-same-line-expected.txt
deleted file mode 100644 (file)
index d95c261..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page has a call to eval and a script tag on the same line. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be multiple (program) elements and one that represents the eval().
-
-Profile title: Two Execution Contexts on the same line
-Thread_1 (no file) (line 0:0)
-   startTest execution-context-and-eval-on-same-line.html (line 10:19)
-      evalFunction (no file) (line 1:22)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/execution-context-and-eval-on-same-line.html b/LayoutTests/fast/profiler/execution-context-and-eval-on-same-line.html
deleted file mode 100644 (file)
index a75b29a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Two Execution Contexts on the same line");
-
-    evalFunction();
-
-    endTest();
-}
-</script>
-<script>
-eval("function evalFunction() { insertNewText(); }");
-</script>
-</head>
-
-<body onload="startTest()">
-This page has a call to eval and a script tag on the same line.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be multiple (program) elements and
-one that represents the eval().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/inline-event-handler-expected.txt b/LayoutTests/fast/profiler/inline-event-handler-expected.txt
deleted file mode 100644 (file)
index a023e5f..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-This page has an inline event handler. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile onclick() should be a sibling to onload() and onclick() should have eventListener() as a child. 
-
-Profile title: Inline event handler
-Thread_1 (no file) (line 0:0)
-   startTest inline-event-handler.html (line 10:19)
-      getElementById (no file) (line 0:0)
-      click (no file) (line 0:0)
-         onclick inline-event-handler.html (line 31:127)
-            eventListener inline-event-handler.html (line 17:23)
-               anonymousFunction profiler-test-JS-resources.js (line 29:34)
-                  insertNewText profiler-test-JS-resources.js (line 17:23)
-                     createElement (no file) (line 0:0)
-                     createTextNode (no file) (line 0:0)
-                     appendChild (no file) (line 0:0)
-                     getElementById (no file) (line 0:0)
-               endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/inline-event-handler.html b/LayoutTests/fast/profiler/inline-event-handler.html
deleted file mode 100644 (file)
index 5001463..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{    
-    console.profile("Inline event handler");
-
-    document.getElementById("eventListenerSetInline").click();
-}
-
-function eventListener() {    
-    anonymousFunction();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has an inline event handler.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile onclick() should be a sibling to onload() and onclick()
-should have eventListener() as a child.
-<input type="button" onclick="eventListener()" id="eventListenerSetInline" value="Event Listener Set Inline">
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/many-calls-in-the-same-scope-expected.txt b/LayoutTests/fast/profiler/many-calls-in-the-same-scope-expected.txt
deleted file mode 100644 (file)
index 0cd45d1..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-This page's JavaScript has many function calls in the same scope. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile many functions should be the children of startTest. Use the sorting capabilites to make sure the similarly named functions are sorted correctly.
-
-Profile title: Many Calls In The Same Scope
-Thread_1 (no file) (line 0:0)
-   startTest many-calls-in-the-same-scope.html (line 10:19)
-      insertNewText profiler-test-JS-resources.js (line 17:23)
-         createElement (no file) (line 0:0)
-         createTextNode (no file) (line 0:0)
-         appendChild (no file) (line 0:0)
-         getElementById (no file) (line 0:0)
-      insertGivenText profiler-test-JS-resources.js (line 9:25)
-         createElement (no file) (line 0:0)
-         createTextNode (no file) (line 0:0)
-         appendChild (no file) (line 0:0)
-         getElementById (no file) (line 0:0)
-      arrayOperatorFunction profiler-test-JS-resources.js (line 25:31)
-      intermediaryFunction profiler-test-JS-resources.js (line 32:30)
-         anonymousFunction profiler-test-JS-resources.js (line 29:34)
-            insertNewText profiler-test-JS-resources.js (line 17:23)
-               createElement (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               getElementById (no file) (line 0:0)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      end many-calls-in-the-same-scope.html (line 26:13)
-      endT many-calls-in-the-same-scope.html (line 31:14)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/many-calls-in-the-same-scope.html b/LayoutTests/fast/profiler/many-calls-in-the-same-scope.html
deleted file mode 100644 (file)
index 0719bce..0000000
+++ /dev/null
@@ -1,49 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Many Calls In The Same Scope");
-
-    insertNewText();
-    insertGivenText("This was a triumph.");
-    arrayOperatorFunction(7);
-    intermediaryFunction();
-    anonymousFunction();
-    end()
-    endT();
-    endT();
-
-    endTest();
-}
-
-function end()
-{
-    var x = 0;
-}
-
-function endT()
-{
-    var y = 1;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has many function calls in the same scope.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile many functions should be the children of startTest.
-Use the sorting capabilites to make sure the similarly named functions are sorted
-correctly.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt b/LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls-expected.txt
deleted file mode 100644 (file)
index 051ec81..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-This page's JavaScript calls the same anonymous function from multiple and differently scoped locations. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to fakeObject with fakeInteriorFunction as its child, but call() should not be shown.
-
-Profile title: Multiple and different scoped calls to the same anonymous function
-Thread_1 (no file) (line 0:0)
-   startTest multiple-and-different-scoped-anonymous-function-calls.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      intermediaryFunction profiler-test-JS-resources.js (line 32:30)
-         anonymousFunction profiler-test-JS-resources.js (line 29:34)
-            insertNewText profiler-test-JS-resources.js (line 17:23)
-               createElement (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html b/LayoutTests/fast/profiler/multiple-and-different-scoped-anonymous-function-calls.html
deleted file mode 100644 (file)
index c2d005a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Multiple and different scoped calls to the same anonymous function");
-
-    anonymousFunction();
-    anonymousFunction();
-
-    intermediaryFunction();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls the same anonymous function from multiple and differently scoped locations.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to fakeObject with
-fakeInteriorFunction as its child, but call() should not be shown.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls-expected.txt b/LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls-expected.txt
deleted file mode 100644 (file)
index b9fdced..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-This page's JavaScript calls the same function from multiple and differently scoped locations. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be two calls to insertNewText under startTest() and one under an (anonymous function) under intermediaryFunction().
-
-Profile title: Multiple and different scoped calls to the same function
-Thread_1 (no file) (line 0:0)
-   startTest multiple-and-different-scoped-function-calls.html (line 10:19)
-      insertNewText profiler-test-JS-resources.js (line 17:23)
-         createElement (no file) (line 0:0)
-         createTextNode (no file) (line 0:0)
-         appendChild (no file) (line 0:0)
-         getElementById (no file) (line 0:0)
-      intermediaryFunction profiler-test-JS-resources.js (line 32:30)
-         anonymousFunction profiler-test-JS-resources.js (line 29:34)
-            insertNewText profiler-test-JS-resources.js (line 17:23)
-               createElement (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls.html b/LayoutTests/fast/profiler/multiple-and-different-scoped-function-calls.html
deleted file mode 100644 (file)
index fc2e221..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Multiple and different scoped calls to the same function");
-
-    insertNewText();
-    insertNewText();
-
-    intermediaryFunction();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls the same function from multiple and differently scoped locations.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be two calls to insertNewText under
-startTest() and one under an (anonymous function) under intermediaryFunction().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function-expected.txt b/LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function-expected.txt
deleted file mode 100644 (file)
index e401404..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-This page's JavaScript calls the different anonymous functions the same scope. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call two entries named to (anonymous function), as opposed to one entry called twice.
-
-Profile title: Multiple calls to different anonymous functions
-Thread_1 (no file) (line 0:0)
-   startTest multiple-anonymous-functions-called-from-the-same-function.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      anotherAnonymousFunction profiler-test-JS-resources.js (line 30:41)
-         insertGivenText profiler-test-JS-resources.js (line 9:25)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html b/LayoutTests/fast/profiler/multiple-anonymous-functions-called-from-the-same-function.html
deleted file mode 100644 (file)
index fb1cf2d..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Multiple calls to different anonymous functions");
-
-    anonymousFunction();
-    anotherAnonymousFunction();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls the different anonymous functions the same scope.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call two entries named to (anonymous function),
-as opposed to one entry called twice.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/multiple-frames-expected.txt b/LayoutTests/fast/profiler/multiple-frames-expected.txt
deleted file mode 100644 (file)
index 2e23f4c..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-This test has JS executing in another window. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to functionInOtherFrame().
-
-Profile title: Other window executing JavaScript
-Thread_1 (no file) (line 0:0)
-   startTest multiple-frames.html (line 10:19)
-      getElementById (no file) (line 0:0)
-      functionInOtherFrame other-frame.html (line 4:30)
-         functionInParentFrame multiple-frames.html (line 21:31)
-      insertGivenText profiler-test-JS-resources.js (line 9:25)
-         createElement (no file) (line 0:0)
-         createTextNode (no file) (line 0:0)
-         appendChild (no file) (line 0:0)
-         getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/multiple-frames.html b/LayoutTests/fast/profiler/multiple-frames.html
deleted file mode 100644 (file)
index d1b4ff6..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Other window executing JavaScript");
-
-    var myFrame = document.getElementById("mySubFrame");
-    var secret = myFrame.contentWindow.functionInOtherFrame();
-    insertGivenText(secret);
-
-    endTest();
-}
-
-function functionInParentFrame() {
-    return "Pi";
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This test has JS executing in another window.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to functionInOtherFrame().
-<div id="output"></div>
-<iframe src="resources/other-frame.html" id="mySubFrame"></iframe>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/named-functions-with-display-names-expected.txt b/LayoutTests/fast/profiler/named-functions-with-display-names-expected.txt
deleted file mode 100644 (file)
index 190a64c..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page's JavaScript calls named functions and changes their display names. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. You should see functions named "[x] iteration[s] function", and not "function[x]"
-
-Profile title: Named functions with display names
-Thread_1 (no file) (line 0:0)
-   startTest named-functions-with-display-names.html (line 53:19)
-      0 iterations function named-functions-with-display-names.html (line 10:19)
-      1 iteration function named-functions-with-display-names.html (line 17:19)
-      2 iterations function named-functions-with-display-names.html (line 24:19)
-      20 iterations function named-functions-with-display-names.html (line 31:20)
-      1000 iterations function named-functions-with-display-names.html (line 38:22)
-      bogusDisplayNameFunction named-functions-with-display-names.html (line 46:34)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/named-functions-with-display-names.html b/LayoutTests/fast/profiler/named-functions-with-display-names.html
deleted file mode 100644 (file)
index 7af2ec0..0000000
+++ /dev/null
@@ -1,77 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function function0()
-{
-    for (var i = 0; i < 0; ++i) ;
-}
-
-function0.displayName = "0 iterations function";
-
-function function1()
-{
-    for (var i = 0; i < 1; ++i) ;
-}
-
-function1.displayName = "1 iteration function";
-
-function function2()
-{
-    for (var i = 0; i < 2; ++i) ;
-}
-
-function2.displayName = "2 iterations function";
-
-function function20()
-{
-    for (var i = 0; i < 20; ++i) ;
-}
-
-function20.displayName = "20 iterations function";
-
-function function1000()
-{
-    for (var i = 0; i < 1000; ++i) ;
-}
-
-function1000.displayName = "1000 iterations function";
-
-
-function bogusDisplayNameFunction()
-{
-    for (var i = 0; i < 0; ++i) ;
-}
-
-bogusDisplayNameFunction.displayName = bogusDisplayNameFunction;
-
-function startTest()
-{
-    console.profile("Named functions with display names");
-
-    function0();
-    function1();
-    function2();
-    function20();
-    function1000();
-    bogusDisplayNameFunction();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls named functions and changes their display names.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  You should see functions named "[x] iteration[s] function", and not "function[x]"
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/nested-anonymous-functon-expected.txt b/LayoutTests/fast/profiler/nested-anonymous-functon-expected.txt
deleted file mode 100644 (file)
index d229a42..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-This page's JavaScript calls an anonymous which calls a nested anonymous function. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be an (anonymous function) with a child (anonymous function).
-
-Profile title: Nested anonymous functions called
-Thread_1 (no file) (line 0:0)
-   startTest nested-anonymous-functon.html (line 10:19)
-      AnonymousFunctionWichCallsAnAnonymousFunction nested-anonymous-functon.html (line 14:65)
-         anonymousFunction profiler-test-JS-resources.js (line 29:34)
-            insertNewText profiler-test-JS-resources.js (line 17:23)
-               createElement (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/nested-anonymous-functon.html b/LayoutTests/fast/profiler/nested-anonymous-functon.html
deleted file mode 100644 (file)
index f6b925a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Nested anonymous functions called");
-
-    var AnonymousFunctionWichCallsAnAnonymousFunction = function() {
-        anonymousFunction();
-    }
-
-    AnonymousFunctionWichCallsAnAnonymousFunction();
-
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls an anonymous which calls a nested anonymous function.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be an (anonymous function) with a child
-(anonymous function).
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/nested-start-and-stop-profiler-expected.txt b/LayoutTests/fast/profiler/nested-start-and-stop-profiler-expected.txt
deleted file mode 100644 (file)
index 15a309d..0000000
+++ /dev/null
@@ -1,186 +0,0 @@
-This page's JavaScript calls console.profile() three times then console.profileEnd() three times. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profiler there should be three profiles.
-
-Profile title: Start the profiler the third time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
-Profile title: Start the profiler the third time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-Profile title: Start the profiler the second time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-         profileEnd (no file) (line 0:0)
-         printProfilesDataWithoutTime profiler-test-JS-resources.js (line 62:38)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-               replace (no file) (line 0:0)
-                  hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                     (anonymous function) (no file) (line 0:0)
-                  anonymous (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               children (no file) (line 0:0)
-               printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                  replace (no file) (line 0:0)
-                     hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                        (anonymous function) (no file) (line 0:0)
-                     anonymous (no file) (line 0:0)
-                  createTextNode (no file) (line 0:0)
-                  appendChild (no file) (line 0:0)
-                  children (no file) (line 0:0)
-                  printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                     replace (no file) (line 0:0)
-                        hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                           (anonymous function) (no file) (line 0:0)
-                        anonymous (no file) (line 0:0)
-                     createTextNode (no file) (line 0:0)
-                     appendChild (no file) (line 0:0)
-                     children (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-         notifyDone (no file) (line 0:0)
-
-
-Profile title: Start the profiler the third time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-Profile title: Start the profiler the second time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-         profileEnd (no file) (line 0:0)
-         printProfilesDataWithoutTime profiler-test-JS-resources.js (line 62:38)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-               replace (no file) (line 0:0)
-                  hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                     (anonymous function) (no file) (line 0:0)
-                  anonymous (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               children (no file) (line 0:0)
-               printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                  replace (no file) (line 0:0)
-                     hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                        (anonymous function) (no file) (line 0:0)
-                     anonymous (no file) (line 0:0)
-                  createTextNode (no file) (line 0:0)
-                  appendChild (no file) (line 0:0)
-                  children (no file) (line 0:0)
-                  printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                     replace (no file) (line 0:0)
-                        hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                           (anonymous function) (no file) (line 0:0)
-                        anonymous (no file) (line 0:0)
-                     createTextNode (no file) (line 0:0)
-                     appendChild (no file) (line 0:0)
-                     children (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-         notifyDone (no file) (line 0:0)
-
-Profile title: Start the profiler the first time.
-Thread_1 (no file) (line 0:0)
-   startTest nested-start-and-stop-profiler.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-         profileEnd (no file) (line 0:0)
-         printProfilesDataWithoutTime profiler-test-JS-resources.js (line 62:38)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-               replace (no file) (line 0:0)
-                  hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                     (anonymous function) (no file) (line 0:0)
-                  anonymous (no file) (line 0:0)
-               createTextNode (no file) (line 0:0)
-               appendChild (no file) (line 0:0)
-               children (no file) (line 0:0)
-               printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                  replace (no file) (line 0:0)
-                     hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                        (anonymous function) (no file) (line 0:0)
-                     anonymous (no file) (line 0:0)
-                  createTextNode (no file) (line 0:0)
-                  appendChild (no file) (line 0:0)
-                  children (no file) (line 0:0)
-                  printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                     replace (no file) (line 0:0)
-                        hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                           (anonymous function) (no file) (line 0:0)
-                        anonymous (no file) (line 0:0)
-                     createTextNode (no file) (line 0:0)
-                     appendChild (no file) (line 0:0)
-                     children (no file) (line 0:0)
-                     printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                        replace (no file) (line 0:0)
-                           hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                              (anonymous function) (no file) (line 0:0)
-                           anonymous (no file) (line 0:0)
-                        createTextNode (no file) (line 0:0)
-                        appendChild (no file) (line 0:0)
-                        children (no file) (line 0:0)
-                        printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                           replace (no file) (line 0:0)
-                              hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                 (anonymous function) (no file) (line 0:0)
-                              anonymous (no file) (line 0:0)
-                           createTextNode (no file) (line 0:0)
-                           appendChild (no file) (line 0:0)
-                           children (no file) (line 0:0)
-                           printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                              replace (no file) (line 0:0)
-                                 hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                    (anonymous function) (no file) (line 0:0)
-                                 anonymous (no file) (line 0:0)
-                              createTextNode (no file) (line 0:0)
-                              appendChild (no file) (line 0:0)
-                              children (no file) (line 0:0)
-                              printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                                 replace (no file) (line 0:0)
-                                    hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                       (anonymous function) (no file) (line 0:0)
-                                    anonymous (no file) (line 0:0)
-                                 createTextNode (no file) (line 0:0)
-                                 appendChild (no file) (line 0:0)
-                                 children (no file) (line 0:0)
-                                 printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                                    replace (no file) (line 0:0)
-                                       hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                          (anonymous function) (no file) (line 0:0)
-                                       anonymous (no file) (line 0:0)
-                                    createTextNode (no file) (line 0:0)
-                                    appendChild (no file) (line 0:0)
-                                    children (no file) (line 0:0)
-                                    printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                                       replace (no file) (line 0:0)
-                                          hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                             (anonymous function) (no file) (line 0:0)
-                                          anonymous (no file) (line 0:0)
-                                       createTextNode (no file) (line 0:0)
-                                       appendChild (no file) (line 0:0)
-                                       children (no file) (line 0:0)
-                                       printProfileNodeWithoutTime profiler-test-JS-resources.js (line 77:37)
-                                          replace (no file) (line 0:0)
-                                             hasObservableSideEffectsForStringReplace (no file) (line 0:0)
-                                                (anonymous function) (no file) (line 0:0)
-                                             anonymous (no file) (line 0:0)
-                                          createTextNode (no file) (line 0:0)
-                                          appendChild (no file) (line 0:0)
-                                          children (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-         notifyDone (no file) (line 0:0)
-
-
diff --git a/LayoutTests/fast/profiler/nested-start-and-stop-profiler.html b/LayoutTests/fast/profiler/nested-start-and-stop-profiler.html
deleted file mode 100644 (file)
index 2e78723..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Start the profiler the first time.");
-    console.profile("Start the profiler the second time.");
-    console.profile("Start the profiler the third time.");
-    endTest();
-    endTest();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls console.profile() three times then console.profileEnd()
-three times.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profiler there should be three profiles.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/no-execution-context-expected.txt b/LayoutTests/fast/profiler/no-execution-context-expected.txt
deleted file mode 100644 (file)
index 755dccb..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-This page has a no profiling information. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. You should not see any profile date in the WebInspector.
-
-
diff --git a/LayoutTests/fast/profiler/no-execution-context.html b/LayoutTests/fast/profiler/no-execution-context.html
deleted file mode 100644 (file)
index 19c8539..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-</script>
-</head>
-
-<body onload="printProfilesDataWithoutTime()">
-This page has a no profiling information.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  You should not see any profile date in the WebInspector.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/one-execution-context-expected.txt b/LayoutTests/fast/profiler/one-execution-context-expected.txt
deleted file mode 100644 (file)
index f8dd670..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page has a single script tag with some simple JavaScript. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile.
-
-Profile title: One Execution Context
-Thread_1 (no file) (line 0:0)
-   startTest one-execution-context.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/one-execution-context.html b/LayoutTests/fast/profiler/one-execution-context.html
deleted file mode 100644 (file)
index d55f873..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("One Execution Context");
-    endTest();
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page has a single script tag with some simple JavaScript.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/profile-calls-in-included-file-expected.txt b/LayoutTests/fast/profiler/profile-calls-in-included-file-expected.txt
deleted file mode 100644 (file)
index c42d171..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page calls the profiler from the included file. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. If there is a profile that is sufficient for this test.
-
-Profile title: Profile call in included file
-Thread_1 (no file) (line 0:0)
-   startProfile profiler-test-JS-resources.js (line 42:22)
-   endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/profile-calls-in-included-file.html b/LayoutTests/fast/profiler/profile-calls-in-included-file.html
deleted file mode 100644 (file)
index af0f8f2..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    startProfile("Profile call in included file");
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page calls the profiler from the included file.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  If there is a profile that is sufficient for this test.
-<div id="output"></div>
-<script>
-</script>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/profile-with-no-title-expected.txt b/LayoutTests/fast/profiler/profile-with-no-title-expected.txt
deleted file mode 100644 (file)
index 18dacdb..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page creates a profile without a title. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. If there is a profile that is sufficient for this test.
-
-Profile title: 
-Thread_1 (no file) (line 0:0)
-   startTest profile-with-no-title.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/profile-with-no-title.html b/LayoutTests/fast/profiler/profile-with-no-title.html
deleted file mode 100644 (file)
index ea525bc..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page creates a profile without a title.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  If there is a profile that is sufficient for this test.
-<div id="output"></div>
-<script>
-</script>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt b/LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting-expected.txt
deleted file mode 100644 (file)
index 156a2b3..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page's JavaScript starts profiling from within a nested location but stops the profiler from a different level of nesting. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to functionWichStartsAndStopsTheProfiler().
-
-Profile title: Profiling From A Nested Location But Stop Profiling Outside The Nesting
-Thread_1 (no file) (line 0:0)
-   functionWichStartsTheProfiler profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html (line 16:39)
-   endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html b/LayoutTests/fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html
deleted file mode 100644 (file)
index 48b5f77..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    functionWichStartsTheProfiler();
-    endTest();
-}
-
-function functionWichStartsTheProfiler()
-{
-    console.profile("Profiling From A Nested Location But Stop Profiling Outside The Nesting");
-
-    for (var i = 0; i < 10000000; i++)
-        var b = i + 2;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript starts profiling from within a nested location but stops the profiler
-from a different level of nesting.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to functionWichStartsAndStopsTheProfiler().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/profiling-from-a-nested-location-expected.txt b/LayoutTests/fast/profiler/profiling-from-a-nested-location-expected.txt
deleted file mode 100644 (file)
index 484283b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page's JavaScript starts profiling from within a nested location. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to functionWichStartsAndStopsTheProfiler().
-
-Profile title: Profiling From A Nested Location
-Thread_1 (no file) (line 0:0)
-   functionWichStartsAndStopsTheProfiler profiling-from-a-nested-location.html (line 15:47)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/profiling-from-a-nested-location.html b/LayoutTests/fast/profiler/profiling-from-a-nested-location.html
deleted file mode 100644 (file)
index 281fd03..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    functionWichStartsAndStopsTheProfiler();
-}
-
-function functionWichStartsAndStopsTheProfiler()
-{
-    console.profile("Profiling From A Nested Location");
-
-    for (var i = 0; i < 10000000; i++)
-        var b = i + 2;
-
-    endTest();
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript starts profiling from within a nested location.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to functionWichStartsAndStopsTheProfiler().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/resources/other-frame.html b/LayoutTests/fast/profiler/resources/other-frame.html
deleted file mode 100644 (file)
index e836fbf..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-<html>
-<head>
-<script>
-function functionInOtherFrame() {
-        return parent.functionInParentFrame();
-}
-</script>
-</head>
-
-<body>
-This file contains some JavaScript.
-</body>
-</html>
\ No newline at end of file
diff --git a/LayoutTests/fast/profiler/resources/other-window.html b/LayoutTests/fast/profiler/resources/other-window.html
deleted file mode 100644 (file)
index 34841a8..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-<html>
-<head>
-<script src="profiler-test-JS-resources.js"></script>
-<script>
-var interestingKnowledge;
-function otherTestStart()
-{
-    interestingKnowledge = isEqualToFive(3);
-    opener.windowFinishedLoading();
-}
-
-function functionInOtherWindow() {
-        return interestingKnowledge;
-}
-</script>
-</head>
-
-<body onload="otherTestStart()">
-This file executes some JavaScript.
-</body>
-</html>
-
diff --git a/LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js b/LayoutTests/fast/profiler/resources/profiler-test-JS-resources.js
deleted file mode 100644 (file)
index 763542f..0000000
+++ /dev/null
@@ -1,95 +0,0 @@
-function endTest() {
-    console.profileEnd();
-    printProfilesDataWithoutTime();
-
-    if (window.testRunner)
-        testRunner.notifyDone();
-}
-
-function insertGivenText(text) {
-    var paragraph = document.createElement("p");
-    paragraph.appendChild(document.createTextNode(text));
-    paragraph.style.display = "none"; // Hidden since this isn't important in the test results.
-
-    document.getElementById("output").appendChild(paragraph);
-}
-
-function insertNewText() {
-    var paragraph = document.createElement("p");
-    paragraph.appendChild(document.createTextNode("This is inserted Text"));
-    paragraph.style.display = "none"; // Hidden since this isn't important in the test results.
-
-    document.getElementById("output").appendChild(paragraph);
-}
-
-function arrayOperatorFunction(arrayElement) {
-    return arrayElement + 5;
-}
-
-var anonymousFunction = function () { insertNewText(); };
-var anotherAnonymousFunction = function () { insertGivenText("Another anonymous function was called.") };
-
-function intermediaryFunction()
-{
-    anonymousFunction();
-}
-
-function isEqualToFive(input)
-{
-    return input === 5;
-}
-
-function startProfile(title)
-{
-    console.profile(title);
-}
-
-function printHeavyProfilesDataWithoutTime()
-{
-    var preElement = document.createElement("pre");
-    preElement.appendChild(document.createTextNode("\n"));
-
-    var profiles = internals.consoleProfiles;
-    for (var i = 0; i < profiles.length; ++i) {
-        preElement.appendChild(document.createTextNode("Profile title: " + profiles[i].title + "\n"));
-        printProfileNodeWithoutTime(preElement, profiles[i].heavyProfile.rootNode, 0);
-        preElement.appendChild(document.createTextNode("\n"));
-    }
-
-    document.getElementById("output").appendChild(preElement);
-}
-
-function printProfilesDataWithoutTime()
-{
-    var preElement = document.createElement("pre");
-    preElement.appendChild(document.createTextNode("\n"));
-
-    var profiles = internals.consoleProfiles;
-    for (var i = 0; i < profiles.length; ++i) {
-        preElement.appendChild(document.createTextNode("Profile title: " + profiles[i].title + "\n"));
-        printProfileNodeWithoutTime(preElement, profiles[i].rootNode, 0);
-        preElement.appendChild(document.createTextNode("\n"));
-    }
-
-    document.getElementById("output").appendChild(preElement);
-}
-
-function printProfileNodeWithoutTime(preElement, node, indentLevel)
-{
-    var space = "";
-    for (var i = 0; i < indentLevel; ++i)
-        space += "   "
-
-    ++indentLevel;
-
-    var strippedURL = node.url.replace(/.*\//, "");
-    if (!strippedURL)
-        strippedURL = "(no file)";
-
-    var line = space + node.functionName + " " + strippedURL + " (line " + node.lineNumber + ":" + node.columnNumber + ")\n";
-    preElement.appendChild(document.createTextNode(line));
-
-    var children = node.children();
-    for (var i = 0; i < children.length; ++i)
-        printProfileNodeWithoutTime(preElement, children[i], indentLevel);
-}
diff --git a/LayoutTests/fast/profiler/simple-event-call-expected.txt b/LayoutTests/fast/profiler/simple-event-call-expected.txt
deleted file mode 100644 (file)
index c4cee3d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page's JavaScript has an onload event. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. There should be only one onload node.
-
-Profile title: A simple profile test where an event happens.
-Thread_1 (no file) (line 0:0)
-   startTest simple-event-call.html (line 10:19)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/simple-event-call.html b/LayoutTests/fast/profiler/simple-event-call.html
deleted file mode 100644 (file)
index d4bdb50..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("A simple profile test where an event happens.");
-    // FIXME: this is not testing what it says it is.
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has an onload event.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  There should be only one onload node.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/simple-no-level-change-expected.txt b/LayoutTests/fast/profiler/simple-no-level-change-expected.txt
deleted file mode 100644 (file)
index 8bc38a5..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page's JavaScript starts and stops profiling from the same scope. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. There should be no function calls between console.profile() and console.profileEnd().
-
-Profile title: A simple profile test where no scope chagnes
-Thread_1 (no file) (line 0:0)
-   functionWichStartsAndStopsTheProfiler simple-no-level-change.html (line 15:47)
-      getElementById (no file) (line 0:0)
-
-
diff --git a/LayoutTests/fast/profiler/simple-no-level-change.html b/LayoutTests/fast/profiler/simple-no-level-change.html
deleted file mode 100644 (file)
index a362c83..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    functionWichStartsAndStopsTheProfiler();
-}
-
-function functionWichStartsAndStopsTheProfiler()
-{
-    console.profile("A simple profile test where no scope chagnes");
-
-    for (var i = 0; i < 10000000; i++)
-        var b = i + 2;
-
-    document.getElementById("output");
-
-    console.profileEnd();
-    printProfilesDataWithoutTime();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript starts and stops profiling from the same scope.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  There should be no function calls between console.profile() and
-console.profileEnd().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times-expected.txt b/LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times-expected.txt
deleted file mode 100644 (file)
index 281e4bf..0000000
+++ /dev/null
@@ -1,73 +0,0 @@
-This page's JavaScript calls console.profile() and console.profileEnd() three times. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profiler there should be three profiles.
-
-Profile title: Start the profiler the first time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
-Profile title: Start the profiler the first time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-Profile title: Start the profiler the second time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
-Profile title: Start the profiler the first time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-Profile title: Start the profiler the second time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-Profile title: Start the profiler the third time.
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiler-multiple-times.html (line 10:19)
-      anonymousFunction profiler-test-JS-resources.js (line 29:34)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times.html b/LayoutTests/fast/profiler/start-and-stop-profiler-multiple-times.html
deleted file mode 100644 (file)
index 169a763..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
- <html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Start the profiler the first time.");
-    anonymousFunction();
-    endTest();
-    console.profile("Start the profiler the second time.");
-    anonymousFunction();
-    endTest();
-    console.profile("Start the profiler the third time.");
-    anonymousFunction();
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls console.profile() and console.profileEnd() three times.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profiler there should be three profiles.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt b/LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function-expected.txt
deleted file mode 100644 (file)
index 7a8f5a6..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page's JavaScript starts profiling from within a nested location. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to functionWichStopsTheProfiler().
-
-Profile title: Profiling From A Nested Location
-Thread_1 (no file) (line 0:0)
-   startTest start-and-stop-profiling-in-the-same-function.html (line 10:19)
-      functionWichStopsTheProfiler start-and-stop-profiling-in-the-same-function.html (line 17:38)
-
-
diff --git a/LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function.html b/LayoutTests/fast/profiler/start-and-stop-profiling-in-the-same-function.html
deleted file mode 100644 (file)
index 3ec0731..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Profiling From A Nested Location");
-
-    functionWichStopsTheProfiler();
-}
-
-function functionWichStopsTheProfiler()
-{
-    for (var i = 0; i < 10000000; i++)
-        var b = i + 2;
-
-    console.profileEnd("Profiling From A Nested Location");
-    printProfilesDataWithoutTime();
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript starts profiling from within a nested location.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to functionWichStopsTheProfiler().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/start-but-dont-stop-profiling-expected.txt b/LayoutTests/fast/profiler/start-but-dont-stop-profiling-expected.txt
deleted file mode 100644 (file)
index 4dbc12d..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-This page's JavaScript calls console.profile() but not console.profileEnd(). 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. You should see the profile running (when that feature is implemented 6060556). Then navigate to another page and check the WebInspector again. Safari should not have crashed and the Inspector should not show a profile (unless we allow cross-load profiling in the future 5951478 & 5954912).
-
-
diff --git a/LayoutTests/fast/profiler/start-but-dont-stop-profiling.html b/LayoutTests/fast/profiler/start-but-dont-stop-profiling.html
deleted file mode 100644 (file)
index 7136d73..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
- <html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Start the profiler but don't stop it.");
-    anonymousFunction();
-    printProfilesDataWithoutTime();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript calls console.profile() but not console.profileEnd().
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  You should see the profile running (when that feature is implemented 6060556).
-Then navigate to another page and check the WebInspector again. Safari should not
-have crashed and the Inspector should not show a profile (unless we allow cross-load
-profiling in the future 5951478 &amp; 5954912).
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/stop-profiling-after-setTimeout-expected.txt b/LayoutTests/fast/profiler/stop-profiling-after-setTimeout-expected.txt
deleted file mode 100644 (file)
index b325da4..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-This page's JavaScript stops profiling from a timeout. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile endProfile() should not be a child of (program).
-
-Profile title: Stop profiling from a timeout
-Thread_1 (no file) (line 0:0)
-   onload stop-profiling-after-setTimeout.html (line 21:44)
-      startTest stop-profiling-after-setTimeout.html (line 12:19)
-         setTimeout (no file) (line 0:0)
-   (program) stop-profiling-after-setTimeout.html (line 1:1)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/stop-profiling-after-setTimeout.html b/LayoutTests/fast/profiler/stop-profiling-after-setTimeout.html
deleted file mode 100644 (file)
index 19fd58e..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner) {
-    testRunner.dumpAsText();
-    testRunner.waitUntilDone();
-}
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Stop profiling from a timeout");    
-    setTimeout("endTest()", 20);
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript stops profiling from a timeout.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile endProfile() should not be a child of (program).
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/stop-then-function-call-expected.txt b/LayoutTests/fast/profiler/stop-then-function-call-expected.txt
deleted file mode 100644 (file)
index 1c05045..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-This page has an anonymous JavaScript function that calls built-in functions. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. There should be two nodes in the profile, a "(program)" node with one child that is "test".
-
-Profile title: Test
-Thread_1 (no file) (line 0:0)
-   (program) (no file) (line 1:16)
-      test stop-then-function-call.html (line 11:14)
-
-
diff --git a/LayoutTests/fast/profiler/stop-then-function-call.html b/LayoutTests/fast/profiler/stop-then-function-call.html
deleted file mode 100644 (file)
index 916a19a..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-var j = 0;
-function test(len) {
-    for (var i = 0; i < len; ++i)
-        ++j;
-}
-
-function test2(len) {
-    for (var i = 0; i < len; ++i)
-        --j;
-}
-
-function startTest()
-{
-    var script = "console.profile('Test');\n";
-    script += "test(1000);\n";
-    script += "console.profileEnd('Test');\n";
-    script += "test2(1000);\n";
-
-    eval(script);
-
-    printProfilesDataWithoutTime();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has an anonymous JavaScript function that calls built-in functions.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile. There should be two nodes in the profile, a "(program)" node with one child that is "test".
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/throw-exception-from-eval-expected.txt b/LayoutTests/fast/profiler/throw-exception-from-eval-expected.txt
deleted file mode 100644 (file)
index 007c9ea..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-CONSOLE MESSAGE: Test exception.
-This page throws an exception from within eval(). 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. The profiler should not crash and still show the stack under insertnewText().
-
-Profile title: Throw within an eval.
-Thread_1 (no file) (line 0)
-   (program) throw-exception-from-eval.html (line 19)
-      (program) throw-exception-from-eval.html (line 10)
-         (program) throw-exception-from-eval.html (line 4)
-         (program) throw-exception-from-eval.html (line 19)
-            eval (no file) (line 0)
-               (program) (no file) (line 1)
-   onload throw-exception-from-eval.html (line 24)
-      startTest throw-exception-from-eval.html (line 13)
-         insertNewText profiler-test-JS-resources.js (line 17)
-            createElement (no file) (line 0)
-            createTextNode (no file) (line 0)
-            appendChild (no file) (line 0)
-            getElementById (no file) (line 0)
-         endTest profiler-test-JS-resources.js (line 1)
-
-
diff --git a/LayoutTests/fast/profiler/throw-exception-from-eval.html-disabled b/LayoutTests/fast/profiler/throw-exception-from-eval.html-disabled
deleted file mode 100644 (file)
index 87eac9a..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.settings.setLegacyJavaScriptProfilingEnabled(true);
-
-console.profile("Throw within an eval.");
-
-function startTest()
-{
-    insertNewText();
-
-    endTest();
-}
-</script>
-<script>
-eval("throw('Test exception.');");
-</script>
-</head>
-
-<body onload="startTest()">
-This page throws an exception from within eval().
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  The profiler should not crash and still show the stack under
-insertnewText().
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/two-execution-contexts-expected.txt b/LayoutTests/fast/profiler/two-execution-contexts-expected.txt
deleted file mode 100644 (file)
index 01e9dd1..0000000
+++ /dev/null
@@ -1,11 +0,0 @@
-This page has two script tags with some simple JavaScript. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be two (program) elements.
-
-Profile title: Two Execution Contexts
-Thread_1 (no file) (line 0:0)
-   startTest two-execution-contexts.html (line 10:19)
-      intermediaryFunction two-execution-contexts.html (line 17:30)
-         testEnd two-execution-contexts.html (line 33:17)
-
-
diff --git a/LayoutTests/fast/profiler/two-execution-contexts.html b/LayoutTests/fast/profiler/two-execution-contexts.html
deleted file mode 100644 (file)
index 6851655..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Two Execution Contexts");
-
-    intermediaryFunction();
-}
-
-function intermediaryFunction()
-{
-    testEnd();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has two script tags with some simple JavaScript.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be two (program) elements.
-<div id="output"></div>
-</body>
-<script>
-function testEnd() {
-    console.profileEnd();
-    printProfilesDataWithoutTime();
-}
-</script>
-</html>
diff --git a/LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions-expected.txt b/LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions-expected.txt
deleted file mode 100644 (file)
index d6ce551..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page has JavaScript that calls built-in functions. 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be calls to createElement() createTextNode() appendChild() and testEnd(), among others.
-This is inserted Text
-
-
-Profile title: User defined function calles built-in functions
-Thread_1 (no file) (line 0:0)
-   startTest user-defined-function-calls-built-in-functions.html (line 10:19)
-      createElement (no file) (line 0:0)
-      createTextNode (no file) (line 0:0)
-      appendChild (no file) (line 0:0)
-      getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions.html b/LayoutTests/fast/profiler/user-defined-function-calls-built-in-functions.html
deleted file mode 100644 (file)
index c7527b7..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("User defined function calles built-in functions");
-
-    var newP = document.createElement("p");
-    var textNode =document.createTextNode("This is inserted Text");
-    newP.appendChild(textNode);
-    var output = document.getElementById("output");
-    output.appendChild(newP);
-    
-    endTest();
-}
-</script>
-</head>
-
-<body onload="startTest()">
-This page has JavaScript that calls built-in functions.
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be calls to createElement() createTextNode()
-appendChild() and testEnd(), among others.
-<div id="output"></div>
-</body>
-</html>
diff --git a/LayoutTests/fast/profiler/window-dot-eval-expected.txt b/LayoutTests/fast/profiler/window-dot-eval-expected.txt
deleted file mode 100644 (file)
index dce88dc..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-This page has a call to window.eval(). 
-
-To run this test manually, load it in the browser then load the WebInspector and look at the profile. In the profile there should be a call to eval().
-
-Profile title: Call window.eval()
-Thread_1 (no file) (line 0:0)
-   startTest window-dot-eval.html (line 10:19)
-      evalFunction (no file) (line 1:22)
-         insertNewText profiler-test-JS-resources.js (line 17:23)
-            createElement (no file) (line 0:0)
-            createTextNode (no file) (line 0:0)
-            appendChild (no file) (line 0:0)
-            getElementById (no file) (line 0:0)
-      endTest profiler-test-JS-resources.js (line 1:17)
-
-
diff --git a/LayoutTests/fast/profiler/window-dot-eval.html b/LayoutTests/fast/profiler/window-dot-eval.html
deleted file mode 100644 (file)
index 87a2b3c..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-if (window.testRunner)
-    testRunner.dumpAsText();
-if (window.internals)
-    internals.setLegacyJavaScriptProfilingEnabled(true);
-
-function startTest()
-{
-    console.profile("Call window.eval()");
-
-    evalFunction();
-
-    endTest();
-}
-</script>
-<script>
-window.eval("function evalFunction() { insertNewText(); }");
-</script>
-</head>
-
-<body onload="startTest()">
-This page has a call to window.eval().
-<br>
-<br>
-To run this test manually, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to eval().
-<div id="output"></div>
-</body>
-</html>
index 10a6749485fb5ad8eef79770ef0a173a39afd4dc..bac8169189d8a962c1a0c5acd6707cc12c61b7a4 100644 (file)
@@ -1021,9 +1021,6 @@ webkit.org/b/142156 css3/shapes/spec-examples/shape-outside-011.html [ Failure P
 webkit.org/b/142156 css3/shapes/spec-examples/shape-outside-012.html [ Failure Pass ]
 webkit.org/b/142156 css3/shapes/spec-examples/shape-outside-019.html [ Failure Pass ]
 
-webkit.org/b/142157 fast/profiler/dead-time.html [ Failure Pass ]
-webkit.org/b/142157 fast/profiler/stop-profiling-after-setTimeout.html [ Failure Pass ]
-
 webkit.org/b/95551 fast/forms/datalist/update-range-with-datalist.html [ ImageOnlyFailure Pass ]
 
 webkit.org/b/129820 svg/clip-path/mask-nested-clip-path-006.svg [ Pass ImageOnlyFailure ]
index b7618c6b775c086ae7f6a2ffa831c42107cda608..a5c955ae2d223bcafb77a4d980bb4ffdfb7b7fc0 100644 (file)
@@ -1203,9 +1203,6 @@ webkit.org/b/136066 animations/missing-keyframe-properties.html [ Crash Pass ]
 webkit.org/b/136066 animations/missing-values-first-keyframe.html [ Crash Pass ]
 webkit.org/b/136066 animations/state-at-end-event.html [ Crash Pass ]
 
-webkit.org/b/136067 fast/profiler/dead-time.html [ Failure Pass ]
-webkit.org/b/136067 fast/profiler/stop-profiling-after-setTimeout.html [ Failure Pass ]
-
 webkit.org/b/136070 fast/forms/label/label-becomes-visible-while-clicking-on-label.html [ Failure Pass ]
 
 webkit.org/b/136580 media/context-menu-actions.html [ Timeout Pass ]
index 77d9bf69b317ef5c659888755f1ed4a70d9b1322..3334177c6eab0c3fc6dd921adc6ba64cad78010d 100644 (file)
@@ -1896,7 +1896,6 @@ fast/parser/nested-fragment-parser-crash.html [ Failure ]
 fast/preloader/document-write-2.html [ Failure ]
 fast/preloader/document-write.html [ Failure ]
 fast/preloader/image-srcset.html [ Failure ]
-fast/profiler/profiling-from-a-nested-location-but-stop-profiling-outside-the-nesting.html [ Failure ]
 fast/regions/absolute-in-relative-overflow.html [ ImageOnlyFailure ]
 fast/regions/absolute-pos-elem-in-region.html [ ImageOnlyFailure ]
 fast/regions/animation-element-in-region-flowed-to-other-thread.html [ ImageOnlyFailure ]
diff --git a/ManualTests/inspector/profiler-test-call.html b/ManualTests/inspector/profiler-test-call.html
deleted file mode 100644 (file)
index 572a2e9..0000000
+++ /dev/null
@@ -1,35 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-console.profile("Using the call() method");
-function startTest()
-{
-    var myObject = new fakeObject(1, 2);
-    endTest();
-}
-
-function fakeObject (x, y)
-{
-    this.x = x;
-    fakeInteriorFunction.call(this, y);
-}
-
-function fakeInteriorFunction(y)
-{
-    this.y = y;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has a call to call() in it.
-<br>
-<br>
-To use this test, load it in the browser then load the WebInspector and look at
-the profile.  In the profile there should be a call to fakeObject() with call() as
-its child and a fakeInteriorFunction() as call()'s child.
-<div id="output"></div>
-</body>
-</html>
diff --git a/ManualTests/inspector/profiler-test-many-calls-in-the-same-scope.html b/ManualTests/inspector/profiler-test-many-calls-in-the-same-scope.html
deleted file mode 100644 (file)
index da5be42..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<html>
-<head>
-<script src="resources/profiler-test-JS-resources.js"></script>
-<script>
-console.profile("Many Calls In The Same Scope");
-function startTest()
-{
-    insertNewText();
-    insertGivenText("This was a triumph.");
-    arrayOperatorFunction(7);
-    intermediaryFunction();
-    anonymousFunction();
-    end()
-    endT();
-    endT();
-    endTest();
-}
-
-function end()
-{
-    var x = 0;
-}
-
-function endT()
-{
-    var y = 1;
-}
-
-</script>
-</head>
-
-<body onload="startTest()">
-This page's JavaScript has many function calls in the same scope.
-<br>
-<br>
-To use this test, load it in the browser then load the WebInspector and look at
-the profile.  In the profile many functions should be the children of startTest.
-Use the sorting capabilites to make sure the similarly named functions are sorted
-correctly.
-<div id="output"></div>
-</body>
-</html>
\ No newline at end of file
index 3f2fc6e21acea06b0a8f0859d667f7492f477685..c4e5c583f72c60eacc67afcf987a19f71cee7f35 100644 (file)
@@ -1,3 +1,17 @@
+2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove LegacyProfiler
+        https://bugs.webkit.org/show_bug.cgi?id=153565
+
+        Reviewed by Saam Barati.
+
+        * inspector/protocol/Timeline.json:
+        * jsc.cpp:
+        * runtime/JSGlobalObject.cpp:
+        (JSC::JSGlobalObject::hasLegacyProfiler):
+        * runtime/JSGlobalObject.h:
+        (JSC::JSGlobalObject::supportsLegacyProfiling): Deleted.
+
 2016-05-20  Saam barati  <sbarati@apple.com>
 
         JSScope::abstractAccess doesn't need to copy the SymbolTableEntry, it can use it by reference
index 822ff86722bdc9183b2cdc52896fefad91a94f3f..69169e0e7ebb5f8b58817d650d1d396f883ae015 100644 (file)
                 { "name": "data", "type": "object", "description": "Event data." },
                 { "name": "children", "type": "array", "optional": true, "items": { "$ref": "TimelineEvent" }, "description": "Nested records." }
             ]
-        },
-        {
-            "id": "CPUProfileNodeAggregateCallInfo",
-            "type": "object",
-            "description": "Aggregate CPU Profile call info. Holds time information for all the calls that happened on a node.",
-            "properties": [
-                { "name": "callCount", "type": "number", "description": "Total number of calls." },
-                { "name": "startTime", "type": "number", "description": "Start time for the first call." },
-                { "name": "endTime", "type": "number", "description": "End time for the last call." },
-                { "name": "totalTime", "type": "number", "description": "Total execution time for all calls combined." }
-            ]
-        },
-        {
-            "id": "CPUProfileNode",
-            "type": "object",
-            "description": "CPU Profile node. Holds callsite information, execution statistics and child nodes.",
-            "properties": [
-                { "name": "id", "type": "integer", "description": "Unique identifier for this call site." },
-                { "name": "callInfo", "$ref": "CPUProfileNodeAggregateCallInfo", "description": "Aggregate info about all the calls that making up this node." },
-                { "name": "functionName", "type": "string", "optional": true, "description": "Function name." },
-                { "name": "url", "type": "string", "optional": true, "description": "URL." },
-                { "name": "lineNumber", "type": "integer", "optional": true, "description": "Line number." },
-                { "name": "columnNumber", "type": "integer", "optional": true, "description": "Column number." },
-                { "name": "children", "type": "array", "items": { "$ref": "CPUProfileNode" }, "optional": true, "description": "Child nodes." }
-            ]
-        },
-        {
-            "id": "CPUProfile",
-            "type": "object",
-            "description": "Profile.",
-            "properties": [
-                { "name": "rootNodes", "type": "array", "items": { "$ref": "CPUProfileNode" }, "description": "Top level nodes in the stack." },
-                { "name": "idleTime", "type": "number", "optional": true }
-            ]
         }
     ],
     "commands": [
index 43822be80cbfa1596690e879f16f6c23a0799368..433d1a5387933a4c46eac172d32a0b912e98820c 100644 (file)
@@ -868,7 +868,7 @@ protected:
 };
 
 const ClassInfo GlobalObject::s_info = { "global", &JSGlobalObject::s_info, nullptr, CREATE_METHOD_TABLE(GlobalObject) };
-const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsLegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, 0, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, nullptr, nullptr };
+const GlobalObjectMethodTable GlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, 0, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, nullptr, nullptr };
 
 
 GlobalObject::GlobalObject(VM& vm, Structure* structure)
index 1c92a203ab3f8bccf380a171198dd865bd45b18b..dd35cae79e70fe75c60b5cc8ab3c31d03b921fb3 100644 (file)
@@ -208,7 +208,7 @@ namespace JSC {
 
 const ClassInfo JSGlobalObject::s_info = { "GlobalObject", &Base::s_info, &globalObjectTable, CREATE_METHOD_TABLE(JSGlobalObject) };
 
-const GlobalObjectMethodTable JSGlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsLegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, nullptr, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
+const GlobalObjectMethodTable JSGlobalObject::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, nullptr, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr, nullptr };
 
 /* Source for JSGlobalObject.lut.h
 @begin globalObjectTable
@@ -833,7 +833,8 @@ putDirectWithoutTransition(vm, vm.propertyNames-> jsName, lowerName ## Construct
 
 bool JSGlobalObject::hasLegacyProfiler() const
 {
-    return globalObjectMethodTable()->supportsLegacyProfiling(this);
+    // FIXME: Remove Legacy Profiler from JavaScriptCore.
+    return false;
 }
 
 bool JSGlobalObject::put(JSCell* cell, ExecState* exec, PropertyName propertyName, JSValue value, PutPropertySlot& slot)
index f580476a1e0bf7dd1e65093ce5b594d9a16ef765..8c0e790a02b4111431d2579e63f5f96d76d1daa9 100644 (file)
@@ -151,9 +151,6 @@ struct GlobalObjectMethodTable {
     typedef bool (*AllowsAccessFromFunctionPtr)(const JSGlobalObject*, ExecState*);
     AllowsAccessFromFunctionPtr allowsAccessFrom;
 
-    typedef bool (*SupportsLegacyProfilingFunctionPtr)(const JSGlobalObject*);
-    SupportsLegacyProfilingFunctionPtr supportsLegacyProfiling;
-
     typedef bool (*SupportsRichSourceInfoFunctionPtr)(const JSGlobalObject*);
     SupportsRichSourceInfoFunctionPtr supportsRichSourceInfo;
 
@@ -717,7 +714,6 @@ public:
     const GlobalObjectMethodTable* globalObjectMethodTable() const { return m_globalObjectMethodTable; }
 
     static bool allowsAccessFrom(const JSGlobalObject*, ExecState*) { return true; }
-    static bool supportsLegacyProfiling(const JSGlobalObject*) { return false; }
     static bool supportsRichSourceInfo(const JSGlobalObject*) { return true; }
 
     JS_EXPORT_PRIVATE ExecState* globalExec();
index 359fc207cb22e6468de4f0170af3320a2087e84d..b57173743dd5c50bd41b3122b4e7a292dcfd63ec 100644 (file)
@@ -590,8 +590,6 @@ set(WebCore_NON_SVG_IDL_FILES
 
     inspector/CommandLineAPIHost.idl
     inspector/InspectorFrontendHost.idl
-    inspector/ScriptProfile.idl
-    inspector/ScriptProfileNode.idl
 
     loader/appcache/DOMApplicationCache.idl
 
index f5f0d26d3f31cc67eb0c75b8623817c4c37daf90..c2950d7f1ebd54268f20b9668163f34925c9eff9 100644 (file)
@@ -1,3 +1,80 @@
+2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove LegacyProfiler
+        https://bugs.webkit.org/show_bug.cgi?id=153565
+
+        Reviewed by Saam Barati.
+
+        JavaScriptCore now provides a sampling profiler and it is enabled
+        by all ports. Web Inspector switched months ago to using the
+        sampling profiler and displaying its data. Remove the legacy
+        profiler, as it is no longer being used by anything other then
+        console.profile and tests. We will update console.profile's
+        behavior soon to have new behavior and use the sampling data.
+
+        * CMakeLists.txt:
+        * DerivedSources.cpp:
+        * DerivedSources.make:
+        * ForwardingHeaders/profiler/LegacyProfiler.h: Removed.
+        * WebCore.xcodeproj/project.pbxproj:
+        * bindings/js/JSCustomXPathNSResolver.cpp:
+        * bindings/js/JSDOMWindowBase.cpp:
+        (WebCore::JSDOMWindowBase::supportsLegacyProfiling): Deleted.
+        (WebCore::JSDOMWindowBase::supportsRichSourceInfo): Deleted.
+        * bindings/js/JSDOMWindowBase.h:
+        * bindings/js/JSWorkerGlobalScopeBase.cpp:
+        (WebCore::JSWorkerGlobalScopeBase::supportsLegacyProfiling): Deleted.
+        * bindings/js/JSWorkerGlobalScopeBase.h:
+        * bindings/js/ScriptCachedFrameData.cpp:
+        * bindings/js/ScriptController.cpp:
+        (WebCore::ScriptController::clearWindowShell): Deleted.
+        * bindings/js/ScriptProfile.h: Removed.
+        * bindings/js/ScriptProfileNode.h: Removed.
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (AddClassForwardIfNeeded): Deleted.
+        * bindings/scripts/test/JS/JSTestObj.cpp:
+        (WebCore::jsTestObjPrototypeFunctionMethodWithSequenceArg): Deleted.
+        (WebCore::jsTestObjPrototypeFunctionMethodReturningSequence): Deleted.
+        * bindings/scripts/test/TestObj.idl:
+        * css/CSSParser.cpp:
+        * dom/Document.cpp:
+        * inspector/InspectorConsoleInstrumentation.h:
+        (WebCore::InspectorInstrumentation::stopProfiling):
+        * inspector/InspectorController.cpp:
+        (WebCore::InspectorController::InspectorController):
+        (WebCore::InspectorController::legacyProfilerEnabled): Deleted.
+        (WebCore::InspectorController::setLegacyProfilerEnabled): Deleted.
+        * inspector/InspectorController.h:
+        * inspector/InspectorInstrumentation.cpp:
+        (WebCore::InspectorInstrumentation::stopProfilingImpl):
+        * inspector/InspectorInstrumentation.h:
+        * inspector/InspectorTimelineAgent.cpp:
+        (WebCore::InspectorTimelineAgent::startFromConsole):
+        (WebCore::InspectorTimelineAgent::stopFromConsole):
+        * inspector/InspectorTimelineAgent.h:
+        * inspector/PageDebuggerAgent.cpp:
+        * inspector/PageRuntimeAgent.cpp:
+        * inspector/ScriptProfile.idl: Removed.
+        * inspector/ScriptProfileNode.idl: Removed.
+        * inspector/TimelineRecordFactory.cpp:
+        (WebCore::buildAggregateCallInfoInspectorObject): Deleted.
+        (WebCore::buildInspectorObject): Deleted.
+        (WebCore::buildProfileInspectorObject): Deleted.
+        (WebCore::TimelineRecordFactory::appendProfile): Deleted.
+        * inspector/TimelineRecordFactory.h:
+        * page/DOMWindow.cpp:
+        * page/Page.cpp:
+        * page/PageConsoleClient.cpp:
+        (WebCore::PageConsoleClient::profileEnd):
+        (WebCore::PageConsoleClient::clearProfiles): Deleted.
+        * page/PageConsoleClient.h:
+        * testing/Internals.cpp:
+        (WebCore::Internals::resetToConsistentState): Deleted.
+        (WebCore::Internals::consoleProfiles): Deleted.
+        (WebCore::Internals::setLegacyJavaScriptProfilingEnabled): Deleted.
+        * testing/Internals.h:
+        * testing/Internals.idl:
+
 2016-05-20  Zalan Bujtas  <zalan@apple.com>
 
         `width: 1%` on nested table cell causes its table to hog horizontal space
index e815904e91480dc77500c374c4f39920aa148ef1..cb63c0d049daafd93b186e3862ff0fb224c3b2b5 100644 (file)
 #include "JSRTCTrackEvent.cpp"
 #include "JSScreen.cpp"
 #include "JSScriptProcessorNode.cpp"
-#include "JSScriptProfile.cpp"
-#include "JSScriptProfileNode.cpp"
 #if ENABLE(CSP_NEXT)
 #include "JSSecurityPolicyViolationEvent.cpp"
 #endif
index 4e9957ba328d2e313766d2e33566a3460495476c..7e61c3025238a009ccb0c36c16a7c76bfb02a957 100644 (file)
@@ -504,8 +504,6 @@ NON_SVG_BINDING_IDLS = \
     $(WebCore)/html/track/VTTCue.idl \
     $(WebCore)/inspector/CommandLineAPIHost.idl \
     $(WebCore)/inspector/InspectorFrontendHost.idl \
-    $(WebCore)/inspector/ScriptProfile.idl \
-    $(WebCore)/inspector/ScriptProfileNode.idl \
     $(WebCore)/loader/appcache/DOMApplicationCache.idl \
     $(WebCore)/page/AbstractView.idl \
     $(WebCore)/page/BarProp.idl \
diff --git a/Source/WebCore/ForwardingHeaders/profiler/LegacyProfiler.h b/Source/WebCore/ForwardingHeaders/profiler/LegacyProfiler.h
deleted file mode 100644 (file)
index dc0e9bf..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-#ifndef WebCore_FWD_LegacyProfiler_h
-#define WebCore_FWD_LegacyProfiler_h
-#include <JavaScriptCore/LegacyProfiler.h>
-#endif
-
index 0644efb17d6cc8a7893f5844f4813d9fde8289d7..a15b8d9c7436141f9baa7f99485c577e6c60592a 100644 (file)
                9DAC7C541AF2CAA100437C44 /* CSSContentDistributionValue.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9DAC7C521AF2CAA100437C44 /* CSSContentDistributionValue.cpp */; };
                9DAC7C551AF2CAA200437C44 /* CSSContentDistributionValue.h in Headers */ = {isa = PBXBuildFile; fileRef = 9DAC7C531AF2CAA100437C44 /* CSSContentDistributionValue.h */; };
                9DAC7C571AF2CB6400437C44 /* StyleContentAlignmentData.h in Headers */ = {isa = PBXBuildFile; fileRef = 9DAC7C561AF2CB6400437C44 /* StyleContentAlignmentData.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               9F72304F11184B4100AD0126 /* ScriptProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 9F72304C11184B4100AD0126 /* ScriptProfile.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               9FA37EE41172FC8000C4CD55 /* ScriptProfileNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FA37EE31172FC8000C4CD55 /* ScriptProfileNode.h */; settings = {ATTRIBUTES = (Private, ); }; };
-               9FA37EFA1172FDA600C4CD55 /* JSScriptProfile.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9FA37EF61172FD9300C4CD55 /* JSScriptProfile.cpp */; };
-               9FA37EFB1172FDA600C4CD55 /* JSScriptProfile.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FA37EF71172FD9300C4CD55 /* JSScriptProfile.h */; };
-               9FA37EFC1172FDA600C4CD55 /* JSScriptProfileNode.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */; };
-               9FA37EFD1172FDA600C4CD55 /* JSScriptProfileNode.h in Headers */ = {isa = PBXBuildFile; fileRef = 9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */; };
                A07D3355152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp in Sources */ = {isa = PBXBuildFile; fileRef = A07D3353152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp */; };
                A07D3356152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = A07D3354152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h */; };
                A07D3358152B632D001B6393 /* WebGLShaderPrecisionFormat.h in Headers */ = {isa = PBXBuildFile; fileRef = A07D3357152B632D001B6393 /* WebGLShaderPrecisionFormat.h */; };
                9DAC7C521AF2CAA100437C44 /* CSSContentDistributionValue.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = CSSContentDistributionValue.cpp; sourceTree = "<group>"; };
                9DAC7C531AF2CAA100437C44 /* CSSContentDistributionValue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CSSContentDistributionValue.h; sourceTree = "<group>"; };
                9DAC7C561AF2CB6400437C44 /* StyleContentAlignmentData.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = StyleContentAlignmentData.h; sourceTree = "<group>"; };
-               9F72304C11184B4100AD0126 /* ScriptProfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptProfile.h; sourceTree = "<group>"; };
-               9FA37EE31172FC8000C4CD55 /* ScriptProfileNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ScriptProfileNode.h; sourceTree = "<group>"; };
-               9FA37EEF1172FD4100C4CD55 /* ScriptProfile.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScriptProfile.idl; sourceTree = "<group>"; };
-               9FA37EF01172FD4100C4CD55 /* ScriptProfileNode.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = ScriptProfileNode.idl; sourceTree = "<group>"; };
-               9FA37EF61172FD9300C4CD55 /* JSScriptProfile.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScriptProfile.cpp; sourceTree = "<group>"; };
-               9FA37EF71172FD9300C4CD55 /* JSScriptProfile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScriptProfile.h; sourceTree = "<group>"; };
-               9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSScriptProfileNode.cpp; sourceTree = "<group>"; };
-               9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSScriptProfileNode.h; sourceTree = "<group>"; };
                A07D3353152B630E001B6393 /* JSWebGLShaderPrecisionFormat.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = JSWebGLShaderPrecisionFormat.cpp; sourceTree = "<group>"; };
                A07D3354152B630E001B6393 /* JSWebGLShaderPrecisionFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JSWebGLShaderPrecisionFormat.h; sourceTree = "<group>"; };
                A07D3357152B632D001B6393 /* WebGLShaderPrecisionFormat.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WebGLShaderPrecisionFormat.h; sourceTree = "<group>"; };
                                A584FE3A1864E2D800843B10 /* JSCommandLineAPIHost.h */,
                                7A0E771C10C00DB100A0276E /* JSInspectorFrontendHost.cpp */,
                                7A0E771D10C00DB100A0276E /* JSInspectorFrontendHost.h */,
-                               9FA37EF61172FD9300C4CD55 /* JSScriptProfile.cpp */,
-                               9FA37EF71172FD9300C4CD55 /* JSScriptProfile.h */,
-                               9FA37EF81172FD9300C4CD55 /* JSScriptProfileNode.cpp */,
-                               9FA37EF91172FD9300C4CD55 /* JSScriptProfileNode.h */,
                        );
                        name = Inspector;
                        sourceTree = "<group>";
                                F382088D147D35F90010BC06 /* PageRuntimeAgent.h */,
                                A5F36D3818F758720054C024 /* PageScriptDebugServer.cpp */,
                                A5F36D3918F758720054C024 /* PageScriptDebugServer.h */,
-                               9FA37EEF1172FD4100C4CD55 /* ScriptProfile.idl */,
-                               9FA37EF01172FD4100C4CD55 /* ScriptProfileNode.idl */,
                                7553CFE7108F473F00EA281E /* TimelineRecordFactory.cpp */,
                                7553CFE6108F473F00EA281E /* TimelineRecordFactory.h */,
                                A56C5B98189F34570082D13C /* WebConsoleAgent.cpp */,
                                A83E1C720E49042B00140B9C /* ScriptControllerMac.mm */,
                                41F066E30F64BCF600A07EAC /* ScriptGlobalObject.cpp */,
                                41F066E20F64BCF600A07EAC /* ScriptGlobalObject.h */,
-                               9F72304C11184B4100AD0126 /* ScriptProfile.h */,
-                               9FA37EE31172FC8000C4CD55 /* ScriptProfileNode.h */,
                                934CC1090EDB223900A658F2 /* ScriptSourceCode.h */,
                                4127D5360F8AAB1D00E424F5 /* ScriptState.cpp */,
                                41C760B00EDE03D300C1655F /* ScriptState.h */,
                                5E2C436C1BCF071E0001E2BC /* JSRTCTrackEvent.h in Headers */,
                                BCEC01C30C274DDD009F4EC9 /* JSScreen.h in Headers */,
                                FDA15ECE12B03F61003A583A /* JSScriptProcessorNode.h in Headers */,
-                               9FA37EFB1172FDA600C4CD55 /* JSScriptProfile.h in Headers */,
-                               9FA37EFD1172FDA600C4CD55 /* JSScriptProfileNode.h in Headers */,
                                CED06AD11C77754800FDFAF1 /* JSSecurityPolicyViolationEvent.h in Headers */,
                                9BDA64D81B975CF2009C4387 /* JSShadowRoot.h in Headers */,
                                CD9DE17B17AAC75B00EA386D /* JSSourceBuffer.h in Headers */,
                                E11C9D9B0EB3681200E409DB /* ScriptExecutionContext.h in Headers */,
                                41F066E40F64BCF600A07EAC /* ScriptGlobalObject.h in Headers */,
                                FD31603612B0267600C1A359 /* ScriptProcessorNode.h in Headers */,
-                               9F72304F11184B4100AD0126 /* ScriptProfile.h in Headers */,
-                               9FA37EE41172FC8000C4CD55 /* ScriptProfileNode.h in Headers */,
                                8A413AE01207BBA50082016E /* ScriptRunner.h in Headers */,
                                934CC10A0EDB223900A658F2 /* ScriptSourceCode.h in Headers */,
                                41C760B10EDE03D300C1655F /* ScriptState.h in Headers */,
                                5E2C436B1BCF071E0001E2BC /* JSRTCTrackEvent.cpp in Sources */,
                                BCEC01C20C274DDD009F4EC9 /* JSScreen.cpp in Sources */,
                                FDA15ECD12B03F61003A583A /* JSScriptProcessorNode.cpp in Sources */,
-                               9FA37EFA1172FDA600C4CD55 /* JSScriptProfile.cpp in Sources */,
-                               9FA37EFC1172FDA600C4CD55 /* JSScriptProfileNode.cpp in Sources */,
                                CED06AD01C77754800FDFAF1 /* JSSecurityPolicyViolationEvent.cpp in Sources */,
                                9BDA64D71B975CE5009C4387 /* JSShadowRoot.cpp in Sources */,
                                CD9DE17A17AAC75B00EA386D /* JSSourceBuffer.cpp in Sources */,
index c3acf5d5b6bff8c617c883ad6d6c99b944193ed6..bf31a76cf625dae54cabf780b3870079e6e60f9c 100644 (file)
@@ -34,7 +34,6 @@
 #include "Page.h"
 #include "PageConsoleClient.h"
 #include "SecurityOrigin.h"
-#include <profiler/Profile.h>
 #include <runtime/JSLock.h>
 #include <wtf/Ref.h>
 
index ef9e673c59ace002c43a018dd01cda2ea1753d7b..6ba4681c66143ee7496a5c8128d5ad6303574ad8 100644 (file)
@@ -64,7 +64,7 @@ static bool shouldAllowAccessFrom(const JSGlobalObject* thisObject, ExecState* e
 
 const ClassInfo JSDOMWindowBase::s_info = { "Window", &JSDOMGlobalObject::s_info, 0, CREATE_METHOD_TABLE(JSDOMWindowBase) };
 
-const GlobalObjectMethodTable JSDOMWindowBase::s_globalObjectMethodTable = { &shouldAllowAccessFrom, &supportsLegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, &moduleLoaderEvaluate, &defaultLanguage };
+const GlobalObjectMethodTable JSDOMWindowBase::s_globalObjectMethodTable = { &shouldAllowAccessFrom, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, &moduleLoaderResolve, &moduleLoaderFetch, nullptr, nullptr, &moduleLoaderEvaluate, &defaultLanguage };
 
 JSDOMWindowBase::JSDOMWindowBase(VM& vm, Structure* structure, PassRefPtr<DOMWindow> window, JSDOMWindowShell* shell)
     : JSDOMGlobalObject(vm, structure, &shell->world(), &s_globalObjectMethodTable)
@@ -125,20 +125,6 @@ void JSDOMWindowBase::printErrorMessage(const String& message) const
     printErrorMessageForFrame(wrapped().frame(), message);
 }
 
-bool JSDOMWindowBase::supportsLegacyProfiling(const JSGlobalObject* object)
-{
-    const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
-    Frame* frame = thisObject->wrapped().frame();
-    if (!frame)
-        return false;
-
-    Page* page = frame->page();
-    if (!page)
-        return false;
-
-    return page->inspectorController().legacyProfilerEnabled();
-}
-
 bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object)
 {
     const JSDOMWindowBase* thisObject = static_cast<const JSDOMWindowBase*>(object);
@@ -152,7 +138,6 @@ bool JSDOMWindowBase::supportsRichSourceInfo(const JSGlobalObject* object)
 
     bool enabled = page->inspectorController().enabled();
     ASSERT(enabled || !thisObject->debugger());
-    ASSERT(enabled || !supportsLegacyProfiling(thisObject));
     return enabled;
 }
 
index 5669de5f426a59915341203e7964636c90375739..16fc39db4b09888d07315ea67a96d0140c01fd6c 100644 (file)
@@ -60,7 +60,6 @@ namespace WebCore {
 
         static const JSC::GlobalObjectMethodTable s_globalObjectMethodTable;
 
-        static bool supportsLegacyProfiling(const JSC::JSGlobalObject*);
         static bool supportsRichSourceInfo(const JSC::JSGlobalObject*);
         static bool shouldInterruptScript(const JSC::JSGlobalObject*);
         static bool shouldInterruptScriptBeforeTimeout(const JSC::JSGlobalObject*);
index 3d476dea599e664aab5721a8ebae529b7d95e441..3b0b305569f618eee407fb14e535c4fdaeaa0fb1 100644 (file)
@@ -44,7 +44,7 @@ namespace WebCore {
 
 const ClassInfo JSWorkerGlobalScopeBase::s_info = { "WorkerGlobalScope", &JSDOMGlobalObject::s_info, 0, CREATE_METHOD_TABLE(JSWorkerGlobalScopeBase) };
 
-const GlobalObjectMethodTable JSWorkerGlobalScopeBase::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsLegacyProfiling, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr, &defaultLanguage };
+const GlobalObjectMethodTable JSWorkerGlobalScopeBase::s_globalObjectMethodTable = { &allowsAccessFrom, &supportsRichSourceInfo, &shouldInterruptScript, &javaScriptRuntimeFlags, &queueTaskToEventLoop, &shouldInterruptScriptBeforeTimeout, nullptr, nullptr, nullptr, nullptr, nullptr, &defaultLanguage };
 
 JSWorkerGlobalScopeBase::JSWorkerGlobalScopeBase(JSC::VM& vm, JSC::Structure* structure, PassRefPtr<WorkerGlobalScope> impl)
     : JSDOMGlobalObject(vm, structure, &normalWorld(vm), &s_globalObjectMethodTable)
@@ -73,11 +73,6 @@ bool JSWorkerGlobalScopeBase::allowsAccessFrom(const JSGlobalObject* object, Exe
     return JSGlobalObject::allowsAccessFrom(object, exec);
 }
 
-bool JSWorkerGlobalScopeBase::supportsLegacyProfiling(const JSGlobalObject* object)
-{
-    return JSGlobalObject::supportsLegacyProfiling(object);
-}
-
 bool JSWorkerGlobalScopeBase::supportsRichSourceInfo(const JSGlobalObject* object)
 {
     return JSGlobalObject::supportsRichSourceInfo(object);
index 1bd2b103f320fdea87d058c7bab42b5d7670ece5..006ff04a89caa697317e16dfe5bad1b82284817b 100644 (file)
@@ -53,7 +53,6 @@ namespace WebCore {
         static const JSC::GlobalObjectMethodTable s_globalObjectMethodTable;
 
         static bool allowsAccessFrom(const JSC::JSGlobalObject*, JSC::ExecState*);
-        static bool supportsLegacyProfiling(const JSC::JSGlobalObject*);
         static bool supportsRichSourceInfo(const JSC::JSGlobalObject*);
         static bool shouldInterruptScript(const JSC::JSGlobalObject*);
         static bool shouldInterruptScriptBeforeTimeout(const JSC::JSGlobalObject*);
index 1cccf8af2100f07f505fe67bfc00b5944899418c..5616b3d418fed90d68005236015d7cee34af2a63 100644 (file)
@@ -40,7 +40,6 @@
 #include "PageGroup.h"
 #include "ScriptController.h"
 #include <heap/StrongInlines.h>
-#include <profiler/Profile.h>
 #include <runtime/JSLock.h>
 #include <runtime/WeakGCMapInlines.h>
 
index 2fc04120312d5f7e6f7e28bb8a77f3c60b667942..d2f2f0332b7285af2556acc85b58b449424f543c 100644 (file)
@@ -52,7 +52,6 @@
 #include <debugger/Debugger.h>
 #include <heap/StrongInlines.h>
 #include <inspector/ScriptCallStack.h>
-#include <profiler/Profile.h>
 #include <runtime/InitializeThreading.h>
 #include <runtime/JSLock.h>
 #include <wtf/Threading.h>
@@ -215,13 +214,6 @@ void ScriptController::clearWindowShell(DOMWindow* newDOMWindow, bool goingIntoP
         attachDebugger(windowShell, nullptr);
         windowShell->window()->setConsoleClient(nullptr);
 
-        // FIXME: We should clear console profiles for each frame as soon as the frame is destroyed.
-        // Instead of clearing all of them when the main frame is destroyed.
-        if (m_frame.isMainFrame()) {
-            if (Page* page = m_frame.page())
-                page->console().clearProfiles();
-        }
-
         windowShell->window()->willRemoveFromWindowShell();
         windowShell->setWindow(newDOMWindow);
 
diff --git a/Source/WebCore/bindings/js/ScriptProfile.h b/Source/WebCore/bindings/js/ScriptProfile.h
deleted file mode 100644 (file)
index 7b43f82..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2010, 2014 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ScriptProfile_h
-#define ScriptProfile_h
-
-#include <profiler/Profile.h>
-
-namespace WebCore {
-
-typedef JSC::Profile ScriptProfile;
-
-} // namespace WebCore
-
-#endif // ScriptProfile_h
diff --git a/Source/WebCore/bindings/js/ScriptProfileNode.h b/Source/WebCore/bindings/js/ScriptProfileNode.h
deleted file mode 100644 (file)
index fd1283d..0000000
+++ /dev/null
@@ -1,38 +0,0 @@
-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#ifndef ScriptProfileNode_h
-#define ScriptProfileNode_h
-
-#include <profiler/ProfileNode.h>
-
-namespace WebCore {
-
-typedef JSC::ProfileNode ScriptProfileNode;
-
-} // namespace WebCore
-
-#endif // ScriptProfileNode_h
index 9212b719c5a69adde02ee445b522d20a154fab54..41255f416bf43f1387361ca13993b3ce007ca80d 100644 (file)
@@ -264,12 +264,6 @@ sub AddClassForwardIfNeeded
 {
     my $interfaceName = shift;
 
-    if ($interfaceName eq "ScriptProfileNode") {
-        $headerIncludes{"<profiler/ProfileNode.h>"} = 1;
-        push(@headerContent, "typedef JSC::ProfileNode ScriptProfileNode;\n\n");
-        return;
-    }
-
     # SVGAnimatedLength/Number/etc. are typedefs and should not be forward-declared as classes.
     return if $codeGenerator->IsSVGAnimatedType($interfaceName);
 
index 297f9dfce1d719b522ad75a0385d93c1d3c6c9c8..ef9586c939e477aa58a811aaeb6ff061e1600e6a 100644 (file)
@@ -42,7 +42,6 @@
 #include "JSNode.h"
 #include "JSSVGDocument.h"
 #include "JSSVGPoint.h"
-#include "JSScriptProfile.h"
 #include "JSTestCallback.h"
 #include "JSTestCallbackFunction.h"
 #include "JSTestNode.h"
@@ -54,7 +53,6 @@
 #include "SVGDocument.h"
 #include "SVGPoint.h"
 #include "SVGStaticPropertyTearOff.h"
-#include "ScriptProfile.h"
 #include "SerializedScriptValue.h"
 #include "Settings.h"
 #include "TestObj.h"
@@ -597,8 +595,6 @@ JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithXPathNSRes
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionNullableStringMethod(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjConstructorFunctionNullableStringStaticMethod(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionNullableStringSpecialMethod(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithSequenceArg(JSC::ExecState*);
-JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodReturningSequence(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithEnumArg(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalEnumArg(JSC::ExecState*);
 JSC::EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue(JSC::ExecState*);
@@ -1169,8 +1165,6 @@ static const HashTableValue JSTestObjPrototypeTableValues[] =
     { "methodWithXPathNSResolverParameter", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithXPathNSResolverParameter), (intptr_t) (1) } },
     { "nullableStringMethod", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionNullableStringMethod), (intptr_t) (0) } },
     { "nullableStringSpecialMethod", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionNullableStringSpecialMethod), (intptr_t) (1) } },
-    { "methodWithSequenceArg", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithSequenceArg), (intptr_t) (1) } },
-    { "methodReturningSequence", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodReturningSequence), (intptr_t) (1) } },
     { "methodWithEnumArg", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithEnumArg), (intptr_t) (1) } },
     { "methodWithOptionalEnumArg", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalEnumArg), (intptr_t) (0) } },
     { "methodWithOptionalEnumArgAndDefaultValue", JSC::Function, NoIntrinsic, { (intptr_t)static_cast<NativeFunction>(jsTestObjPrototypeFunctionMethodWithOptionalEnumArgAndDefaultValue), (intptr_t) (0) } },
@@ -4200,40 +4194,6 @@ EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionNullableStringSpecialMeth
     return JSValue::encode(result);
 }
 
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithSequenceArg(ExecState* state)
-{
-    JSValue thisValue = state->thisValue();
-    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
-    if (UNLIKELY(!castedThis))
-        return throwThisTypeError(*state, "TestObj", "methodWithSequenceArg");
-    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
-    auto& impl = castedThis->wrapped();
-    if (UNLIKELY(state->argumentCount() < 1))
-        return throwVMError(state, createNotEnoughArgumentsError(state));
-    auto sequenceArg = (toRefPtrNativeArray<ScriptProfile, JSScriptProfile>(state, state->argument(0), &JSScriptProfile::toWrapped));
-    if (UNLIKELY(state->hadException()))
-        return JSValue::encode(jsUndefined());
-    impl.methodWithSequenceArg(WTFMove(sequenceArg));
-    return JSValue::encode(jsUndefined());
-}
-
-EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodReturningSequence(ExecState* state)
-{
-    JSValue thisValue = state->thisValue();
-    auto castedThis = jsDynamicCast<JSTestObj*>(thisValue);
-    if (UNLIKELY(!castedThis))
-        return throwThisTypeError(*state, "TestObj", "methodReturningSequence");
-    ASSERT_GC_OBJECT_INHERITS(castedThis, JSTestObj::info());
-    auto& impl = castedThis->wrapped();
-    if (UNLIKELY(state->argumentCount() < 1))
-        return throwVMError(state, createNotEnoughArgumentsError(state));
-    auto longArg = convert<int32_t>(*state, state->argument(0), NormalConversion);
-    if (UNLIKELY(state->hadException()))
-        return JSValue::encode(jsUndefined());
-    JSValue result = jsArray(state, castedThis->globalObject(), impl.methodReturningSequence(WTFMove(longArg)));
-    return JSValue::encode(result);
-}
-
 EncodedJSValue JSC_HOST_CALL jsTestObjPrototypeFunctionMethodWithEnumArg(ExecState* state)
 {
     JSValue thisValue = state->thisValue();
index 32215dae8470e870a1d8e290e2b466df483e5127..341181a5161f0055b420a99eb5b8f9ea8cd8a17d 100644 (file)
@@ -117,9 +117,6 @@ enum TestConfidence { "high", "kinda-low" };
     static DOMString? nullableStringStaticMethod();
     getter DOMString? nullableStringSpecialMethod(unsigned long index);
 
-    void methodWithSequenceArg(sequence<ScriptProfile> sequenceArg);
-    sequence<ScriptProfile> methodReturningSequence(long longArg);
-
     void methodWithEnumArg(TestEnumType enumArg);
     void methodWithOptionalEnumArg(optional TestEnumType enumArg);
     void methodWithOptionalEnumArgAndDefaultValue(optional TestEnumType enumArg = "EnumValue1");
index 7a30cc1cf6978f1ebadd91245487bd9d1bddb695..a9e780fbcfac59e32bde809da13068a012234d01 100644 (file)
 #include "WebKitCSSFilterValue.h"
 #include "WebKitCSSRegionRule.h"
 #include "WebKitCSSTransformValue.h"
-#include <JavaScriptCore/Profile.h>
 #include <bitset>
 #include <limits.h>
 #include <wtf/HexNumber.h>
index cc9d0e3520ad8652c5b1a6dc7e85027d7993e2b9..134554a78370944dbacf309cf0c50962f68ecf66 100644 (file)
 #include "XPathNSResolver.h"
 #include "XPathResult.h"
 #include "htmlediting.h"
-#include <JavaScriptCore/Profile.h>
 #include <ctime>
 #include <inspector/ScriptCallStack.h>
 #include <wtf/CurrentTime.h>
index 4849235274efa2ed4a9dea741217e4dd593689fd..a0170e8e3a7c54782941fa41ff1b39ede1493986 100644 (file)
@@ -33,7 +33,6 @@
 #define InspectorConsoleInstrumentation_h
 
 #include "InspectorInstrumentation.h"
-#include "ScriptProfile.h"
 #include <inspector/ScriptArguments.h>
 #include <inspector/ScriptCallStack.h>
 
@@ -85,9 +84,9 @@ inline void InspectorInstrumentation::startProfiling(Page& page, JSC::ExecState*
     startProfilingImpl(instrumentingAgentsForPage(page), exec, title);
 }
 
-inline RefPtr<JSC::Profile> InspectorInstrumentation::stopProfiling(Page& page, JSC::ExecState* exec, const String &title)
+inline void InspectorInstrumentation::stopProfiling(Page& page, JSC::ExecState* exec, const String &title)
 {
-    return stopProfilingImpl(instrumentingAgentsForPage(page), exec, title);
+    stopProfilingImpl(instrumentingAgentsForPage(page), exec, title);
 }
 
 } // namespace WebCore
index db1cfad722f9db870a2fd109d2ef4f439d8a85f5..04385e5ea208dcd99f91d675c062e322e15b4f0a 100644 (file)
@@ -72,7 +72,6 @@
 #include <inspector/agents/InspectorAgent.h>
 #include <inspector/agents/InspectorHeapAgent.h>
 #include <inspector/agents/InspectorScriptProfilerAgent.h>
-#include <profiler/LegacyProfiler.h>
 #include <runtime/JSLock.h>
 #include <wtf/Stopwatch.h>
 
@@ -171,14 +170,11 @@ InspectorController::InspectorController(Page& page, InspectorClient* inspectorC
     m_instrumentingAgents->setWebConsoleAgent(consoleAgentPtr.get());
     m_agents.append(WTFMove(consoleAgentPtr));
 
-    auto timelineAgentPtr = std::make_unique<InspectorTimelineAgent>(pageContext, scriptProfilerAgent, heapAgent, pageAgent);
-    m_timelineAgent = timelineAgentPtr.get();
-    m_agents.append(WTFMove(timelineAgentPtr));
-
     auto debuggerAgentPtr = std::make_unique<PageDebuggerAgent>(pageContext, pageAgent, m_overlay.get());
     PageDebuggerAgent* debuggerAgent = debuggerAgentPtr.get();
     m_agents.append(WTFMove(debuggerAgentPtr));
 
+    m_agents.append(std::make_unique<InspectorTimelineAgent>(pageContext, scriptProfilerAgent, heapAgent, pageAgent));
     m_agents.append(std::make_unique<InspectorDOMDebuggerAgent>(pageContext, m_domAgent, debuggerAgent));
     m_agents.append(std::make_unique<InspectorApplicationCacheAgent>(pageContext, pageAgent));
     m_agents.append(std::make_unique<InspectorLayerTreeAgent>(pageContext));
@@ -414,27 +410,6 @@ void InspectorController::setIndicating(bool indicating)
 #endif
 }
 
-bool InspectorController::legacyProfilerEnabled() const
-{
-    return m_legacyProfilerEnabled;
-}
-
-void InspectorController::setLegacyProfilerEnabled(bool enable)
-{
-    m_legacyProfilerEnabled = enable;
-
-    ErrorString unused;
-    if (enable) {
-        m_instrumentingAgents->setPersistentInspectorTimelineAgent(m_timelineAgent);
-        m_scriptDebugServer.recompileAllJSFunctions();
-        m_timelineAgent->start(unused);
-    } else {
-        m_instrumentingAgents->setPersistentInspectorTimelineAgent(nullptr);
-        m_scriptDebugServer.recompileAllJSFunctions();
-        m_timelineAgent->stop(unused);
-    }
-}
-
 bool InspectorController::developerExtrasEnabled() const
 {
     return m_page.settings().developerExtrasEnabled();
index cbf5c1968adae07127983d8613d7daafc8e5c9a3..a5896f91354288e355c871753514aac451f8a3ca 100644 (file)
@@ -63,7 +63,6 @@ class InspectorDOMAgent;
 class InspectorFrontendClient;
 class InspectorInstrumentation;
 class InspectorPageAgent;
-class InspectorTimelineAgent;
 class InstrumentingAgents;
 class Node;
 class Page;
@@ -111,9 +110,6 @@ public:
     void setIsUnderTest(bool isUnderTest) { m_isUnderTest = isUnderTest; }
     WEBCORE_EXPORT void evaluateForTestInFrontend(const String& script);
 
-    WEBCORE_EXPORT bool legacyProfilerEnabled() const;
-    WEBCORE_EXPORT void setLegacyProfilerEnabled(bool);
-
     InspectorClient* inspectorClient() const { return m_inspectorClient; }
     InspectorFrontendClient* inspectorFrontendClient() const { return m_inspectorFrontendClient; }
     InspectorPageAgent* pageAgent() const { return m_pageAgent; }
@@ -148,11 +144,9 @@ private:
     Inspector::InspectorAgent* m_inspectorAgent { nullptr };
     InspectorDOMAgent* m_domAgent { nullptr };
     InspectorPageAgent* m_pageAgent { nullptr };
-    InspectorTimelineAgent* m_timelineAgent { nullptr };
 
     bool m_isUnderTest { false };
     bool m_isAutomaticInspection { false };
-    bool m_legacyProfilerEnabled { false };
 };
 
 } // namespace WebCore
index 99007e05ceca18037f81eb11738cbea5b2840aa0..a93386453b4829240dfb6fb8692553c67534034f 100644 (file)
@@ -67,7 +67,6 @@
 #include <inspector/ScriptArguments.h>
 #include <inspector/ScriptCallStack.h>
 #include <inspector/agents/InspectorDebuggerAgent.h>
-#include <profiler/Profile.h>
 #include <runtime/ConsoleTypes.h>
 #include <wtf/StdLibExtras.h>
 #include <wtf/text/CString.h>
@@ -894,11 +893,10 @@ void InspectorInstrumentation::startProfilingImpl(InstrumentingAgents& instrumen
         timelineAgent->startFromConsole(exec, title);
 }
 
-RefPtr<JSC::Profile> InspectorInstrumentation::stopProfilingImpl(InstrumentingAgents& instrumentingAgents, JSC::ExecState* exec, const String& title)
+void InspectorInstrumentation::stopProfilingImpl(InstrumentingAgents& instrumentingAgents, JSC::ExecState* exec, const String& title)
 {
     if (InspectorTimelineAgent* timelineAgent = instrumentingAgents.persistentInspectorTimelineAgent())
-        return timelineAgent->stopFromConsole(exec, title);
-    return nullptr;
+        timelineAgent->stopFromConsole(exec, title);
 }
 
 void InspectorInstrumentation::didOpenDatabaseImpl(InstrumentingAgents& instrumentingAgents, RefPtr<Database>&& database, const String& domain, const String& name, const String& version)
index d9d1448dbfdedb8a6e639cd5152759a7149a6657..7d677ea036c8579fdd96c569d20b983a662c8bbf 100644 (file)
@@ -61,10 +61,6 @@ class ScriptArguments;
 class ScriptCallStack;
 }
 
-namespace JSC {
-class Profile;
-}
-
 namespace WebCore {
 
 class CSSRule;
@@ -218,7 +214,7 @@ public:
     static void didFireAnimationFrame(const InspectorInstrumentationCookie&);
 
     static void startProfiling(Page&, JSC::ExecState*, const String& title);
-    static RefPtr<JSC::Profile> stopProfiling(Page&, JSC::ExecState*, const String& title);
+    static void stopProfiling(Page&, JSC::ExecState*, const String& title);
 
     static void didOpenDatabase(ScriptExecutionContext*, RefPtr<Database>&&, const String& domain, const String& name, const String& version);
 
@@ -387,7 +383,7 @@ private:
     static void didFireAnimationFrameImpl(const InspectorInstrumentationCookie&);
 
     static void startProfilingImpl(InstrumentingAgents&, JSC::ExecState*, const String& title);
-    static RefPtr<JSC::Profile> stopProfilingImpl(InstrumentingAgents&, JSC::ExecState*, const String& title);
+    static void stopProfilingImpl(InstrumentingAgents&, JSC::ExecState*, const String& title);
 
     static void didOpenDatabaseImpl(InstrumentingAgents&, RefPtr<Database>&&, const String& domain, const String& name, const String& version);
 
index 701ba7baf2e9674faf3871fe14fa338b07139c52..2c8e18e006c917a509bcb102ce14f5d16a933420 100644 (file)
@@ -47,7 +47,6 @@
 #include <inspector/agents/InspectorDebuggerAgent.h>
 #include <inspector/agents/InspectorHeapAgent.h>
 #include <inspector/agents/InspectorScriptProfilerAgent.h>
-#include <profiler/LegacyProfiler.h>
 #include <wtf/Stopwatch.h>
 
 #if PLATFORM(IOS)
@@ -242,58 +241,14 @@ double InspectorTimelineAgent::timestamp()
     return m_environment.executionStopwatch()->elapsedTime();
 }
 
-void InspectorTimelineAgent::startFromConsole(JSC::ExecState* exec, const String &title)
+void InspectorTimelineAgent::startFromConsole(JSC::ExecState*, const String&)
 {
     // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler
-
-    // Only allow recording of a profile if it is anonymous (empty title) or does not match
-    // the title of an already recording profile.
-    if (!title.isEmpty()) {
-        for (const TimelineRecordEntry& record : m_pendingConsoleProfileRecords) {
-            String recordTitle;
-            record.data->getString(ASCIILiteral("title"), recordTitle);
-            if (recordTitle == title)
-                return;
-        }
-    }
-
-    if (!m_enabled && m_pendingConsoleProfileRecords.isEmpty())
-        internalStart();
-
-    JSC::LegacyProfiler::profiler()->startProfiling(exec, title, m_environment.executionStopwatch());
-
-    m_pendingConsoleProfileRecords.append(createRecordEntry(TimelineRecordFactory::createConsoleProfileData(title), TimelineRecordType::ConsoleProfile, true, frameFromExecState(exec)));
 }
 
-RefPtr<JSC::Profile> InspectorTimelineAgent::stopFromConsole(JSC::ExecState* exec, const String& title)
+void InspectorTimelineAgent::stopFromConsole(JSC::ExecState*, const String&)
 {
     // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler
-
-    // Stop profiles in reverse order. If the title is empty, then stop the last profile.
-    // Otherwise, match the title of the profile to stop.
-    for (ptrdiff_t i = m_pendingConsoleProfileRecords.size() - 1; i >= 0; --i) {
-        const TimelineRecordEntry& record = m_pendingConsoleProfileRecords[i];
-
-        String recordTitle;
-        record.data->getString(ASCIILiteral("title"), recordTitle);
-
-        if (title.isEmpty() || recordTitle == title) {
-            RefPtr<JSC::Profile> profile = JSC::LegacyProfiler::profiler()->stopProfiling(exec, title);
-            if (profile)
-                TimelineRecordFactory::appendProfile(record.data.get(), profile.copyRef());
-
-            didCompleteRecordEntry(record);
-
-            m_pendingConsoleProfileRecords.remove(i);
-
-            if (!m_enabledFromFrontend && m_pendingConsoleProfileRecords.isEmpty())
-                internalStop();
-
-            return profile;
-        }
-    }
-
-    return nullptr;
 }
 
 void InspectorTimelineAgent::willCallFunction(const String& scriptName, int scriptLine, Frame* frame)
index 88388fc33056f89495ebed96fe0e6a76f0c848f1..cf76ddec4e3bdd1ae236e5c414183ddb22c79dae 100644 (file)
 #include <inspector/ScriptDebugListener.h>
 #include <wtf/Vector.h>
 
-namespace JSC {
-class Profile;
-}
-
 namespace Inspector {
 class InspectorHeapAgent;
 class InspectorScriptProfilerAgent;
@@ -113,8 +109,8 @@ public:
     void didCommitLoad();
 
     // Methods called from WebCore.
-    void startFromConsole(JSC::ExecState*, const String &title);
-    RefPtr<JSC::Profile> stopFromConsole(JSC::ExecState*, const String& title);
+    void startFromConsole(JSC::ExecState*, const Stringtitle);
+    void stopFromConsole(JSC::ExecState*, const String& title);
 
     // InspectorInstrumentation callbacks.
     void didInstallTimer(int timerId, std::chrono::milliseconds timeout, bool singleShot, Frame*);
@@ -204,11 +200,10 @@ private:
     InspectorPageAgent* m_pageAgent;
 
     Vector<TimelineRecordEntry> m_recordStack;
+
     int m_id { 1 };
     int m_maxCallStackDepth { 5 };
 
-    Vector<TimelineRecordEntry> m_pendingConsoleProfileRecords;
-
     bool m_enabled { false };
     bool m_enabledFromFrontend { false };
 
index 197d2e1c6958dc8243a5c731481e23119a317e7b..a86ed135b605922501dffcb807ae0875c2489a30 100644 (file)
@@ -45,7 +45,6 @@
 #include <inspector/InjectedScriptManager.h>
 #include <inspector/ScriptCallStack.h>
 #include <inspector/ScriptCallStackFactory.h>
-#include <profiler/Profile.h>
 #include <wtf/NeverDestroyed.h>
 
 using namespace Inspector;
index a5fae4c547f59a933d54603358e6260eb7020f61..4f4fa25fef0c4afcfc42e62c2df37a1b4a064344 100644 (file)
@@ -45,7 +45,6 @@
 #include "SecurityOrigin.h"
 #include <inspector/InjectedScript.h>
 #include <inspector/InjectedScriptManager.h>
-#include <profiler/Profile.h>
 
 using Inspector::Protocol::Runtime::ExecutionContextDescription;
 
diff --git a/Source/WebCore/inspector/ScriptProfile.idl b/Source/WebCore/inspector/ScriptProfile.idl
deleted file mode 100644 (file)
index 1184a5a..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
-    NoInterfaceObject,
-    SkipVTableValidation,
-    ExportMacro=WEBCORE_EXPORT,
-] interface ScriptProfile {
-    readonly attribute DOMString title;
-    readonly attribute unsigned long uid;
-    readonly attribute ScriptProfileNode rootNode;
-};
-
diff --git a/Source/WebCore/inspector/ScriptProfileNode.idl b/Source/WebCore/inspector/ScriptProfileNode.idl
deleted file mode 100644 (file)
index 00e53db..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/*
- * Copyright (C) 2010 Apple Inc. All rights reserved.
- * Copyright (C) 2010 Google Inc. All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE INC. OR
- * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
- * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
- * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
- * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-[
-    NoInterfaceObject,
-    ImplementationLacksVTable,
-    ExportMacro=WEBCORE_EXPORT,
-] interface ScriptProfileNode {
-    readonly attribute unsigned long id;
-
-    readonly attribute DOMString functionName;
-
-    readonly attribute DOMString url;
-    readonly attribute unsigned long lineNumber;
-    readonly attribute unsigned long columnNumber;
-
-    sequence<ScriptProfileNode> children();
-};
index f4c67c341f4653e784c4dc47eed3684e11206346..68f75919b02cf5944000dda9467021f3e824987b 100644 (file)
@@ -39,7 +39,6 @@
 #include <inspector/ScriptBreakpoint.h>
 #include <inspector/ScriptCallStack.h>
 #include <inspector/ScriptCallStackFactory.h>
-#include <profiler/Profile.h>
 
 using namespace Inspector;
 
@@ -152,63 +151,4 @@ void TimelineRecordFactory::appendLayoutRoot(InspectorObject* data, const FloatQ
     data->setArray(ASCIILiteral("root"), createQuad(quad));
 }
 
-static Ref<Protocol::Timeline::CPUProfileNodeAggregateCallInfo> buildAggregateCallInfoInspectorObject(const JSC::ProfileNode* node)
-{
-    double startTime = node->calls()[0].startTime();
-    double endTime = node->calls().last().startTime() + node->calls().last().elapsedTime();
-
-    double totalTime = 0;
-    for (const JSC::ProfileNode::Call& call : node->calls())
-        totalTime += call.elapsedTime();
-
-    return Protocol::Timeline::CPUProfileNodeAggregateCallInfo::create()
-        .setCallCount(node->calls().size())
-        .setStartTime(startTime)
-        .setEndTime(endTime)
-        .setTotalTime(totalTime)
-        .release();
-}
-
-static Ref<Protocol::Timeline::CPUProfileNode> buildInspectorObject(const JSC::ProfileNode* node)
-{
-    auto result = Protocol::Timeline::CPUProfileNode::create()
-        .setId(node->id())
-        .setCallInfo(buildAggregateCallInfoInspectorObject(node))
-        .release();
-
-    if (!node->functionName().isEmpty())
-        result->setFunctionName(node->functionName());
-
-    if (!node->url().isEmpty()) {
-        result->setUrl(node->url());
-        result->setLineNumber(node->lineNumber());
-        result->setColumnNumber(node->columnNumber());
-    }
-
-    if (!node->children().isEmpty()) {
-        auto children = Protocol::Array<Protocol::Timeline::CPUProfileNode>::create();
-        for (RefPtr<JSC::ProfileNode> profileNode : node->children())
-            children->addItem(buildInspectorObject(profileNode.get()));
-        result->setChildren(WTFMove(children));
-    }
-
-    return result;
-}
-
-static Ref<Protocol::Timeline::CPUProfile> buildProfileInspectorObject(const JSC::Profile* profile)
-{
-    auto rootNodes = Protocol::Array<Protocol::Timeline::CPUProfileNode>::create();
-    for (RefPtr<JSC::ProfileNode> profileNode : profile->rootNode()->children())
-        rootNodes->addItem(buildInspectorObject(profileNode.get()));
-
-    return Protocol::Timeline::CPUProfile::create()
-        .setRootNodes(WTFMove(rootNodes))
-        .release();
-}
-
-void TimelineRecordFactory::appendProfile(InspectorObject* data, RefPtr<JSC::Profile>&& profile)
-{
-    data->setValue(ASCIILiteral("profile"), buildProfileInspectorObject(profile.get()));
-}
-
 } // namespace WebCore
index 04214c3f9b5fdc5ecd2f12c6ffcf036fcaff7907..4c02246dd132638f9ab6255de4898f659dff208c 100644 (file)
 #include <wtf/Forward.h>
 #include <wtf/text/WTFString.h>
 
-namespace JSC {
-class Profile;
-}
-
 namespace Inspector {
 struct ScriptBreakpointAction;
 }
@@ -65,7 +61,6 @@ public:
     static Ref<Inspector::InspectorObject> createPaintData(const FloatQuad&);
 
     static void appendLayoutRoot(Inspector::InspectorObject* data, const FloatQuad&);
-    static void appendProfile(Inspector::InspectorObject*, RefPtr<JSC::Profile>&&);
 
 private:
     TimelineRecordFactory() { }
index e781b7cc4b91babdf31fd7862b9885173bafbe80..78d6fa9905eb6abcd323408b601c36eacd4921ae 100644 (file)
 #include "WebKitPoint.h"
 #include "WindowFeatures.h"
 #include "WindowFocusAllowedIndicator.h"
-#include <JavaScriptCore/Profile.h>
 #include <algorithm>
 #include <inspector/ScriptCallStack.h>
 #include <inspector/ScriptCallStackFactory.h>
index 320f8283995df1b0f3534a22365ad7fa946751c2..463fbaa966ef55fce2c1f806e914c025287a263f 100644 (file)
@@ -96,7 +96,6 @@
 #include "VisitedLinkStore.h"
 #include "VoidCallback.h"
 #include "Widget.h"
-#include <JavaScriptCore/Profile.h>
 #include <wtf/HashMap.h>
 #include <wtf/RefCountedLeakCounter.h>
 #include <wtf/StdLibExtras.h>
index 5cfa97b43a6224cc95f0086af2923e2ff52b7be7..9d0e0a4843c15007c0643420201ca393e6036ac8 100644 (file)
@@ -191,8 +191,7 @@ void PageConsoleClient::profile(JSC::ExecState* exec, const String& title)
 void PageConsoleClient::profileEnd(JSC::ExecState* exec, const String& title)
 {
     // FIXME: <https://webkit.org/b/153499> Web Inspector: console.profile should use the new Sampling Profiler
-    if (RefPtr<JSC::Profile> profile = InspectorInstrumentation::stopProfiling(m_page, exec, title))
-        m_profiles.append(WTFMove(profile));
+    InspectorInstrumentation::stopProfiling(m_page, exec, title);
 }
 
 void PageConsoleClient::takeHeapSnapshot(JSC::ExecState*, const String& title)
@@ -216,9 +215,4 @@ void PageConsoleClient::timeStamp(JSC::ExecState*, RefPtr<ScriptArguments>&& arg
     InspectorInstrumentation::consoleTimeStamp(m_page.mainFrame(), WTFMove(arguments));
 }
 
-void PageConsoleClient::clearProfiles()
-{
-    m_profiles.clear();
-}
-
 } // namespace WebCore
index ce5c518be3e8c3dade5e3d2f0afca9ea8a4259d0..eaef31766a10b0f7e364684c548b7fc69735b47d 100644 (file)
@@ -30,7 +30,6 @@
 #define PageConsoleClient_h
 
 #include <inspector/ScriptCallStack.h>
-#include <profiler/Profile.h>
 #include <runtime/ConsoleClient.h>
 #include <wtf/Forward.h>
 
@@ -43,8 +42,6 @@ namespace WebCore {
 class Document;
 class Page;
 
-typedef Vector<RefPtr<JSC::Profile>> ProfilesArray;
-
 class WEBCORE_EXPORT PageConsoleClient final : public JSC::ConsoleClient {
     WTF_MAKE_FAST_ALLOCATED;
 public:
@@ -61,9 +58,6 @@ public:
     void addMessage(MessageSource, MessageLevel, const String& message, RefPtr<Inspector::ScriptCallStack>&&);
     void addMessage(MessageSource, MessageLevel, const String& message, unsigned long requestIdentifier = 0, Document* = nullptr);
 
-    const ProfilesArray& profiles() const { return m_profiles; }
-    void clearProfiles();
-
 protected:
     void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::ExecState*, RefPtr<Inspector::ScriptArguments>&&) override;
     void count(JSC::ExecState*, RefPtr<Inspector::ScriptArguments>&&) override;
@@ -76,7 +70,6 @@ protected:
 
 private:
     Page& m_page;
-    ProfilesArray m_profiles;
 };
 
 } // namespace WebCore
index 0d3f9b02a3b0415d4cd73955d91fcab5a4c48fa7..d4944ce54b0b972f5a28172cd5aef528dbbf8336 100644 (file)
 #include "WebCoreJSClientData.h"
 #include "WorkerThread.h"
 #include "XMLHttpRequest.h"
-#include <JavaScriptCore/Profile.h>
 #include <bytecode/CodeBlock.h>
 #include <inspector/InspectorAgentBase.h>
 #include <inspector/InspectorFrontendChannel.h>
@@ -389,7 +388,6 @@ void Internals::resetToConsistentState(Page& page)
     WebCore::overrideUserPreferredLanguages(Vector<String>());
     WebCore::Settings::setUsesOverlayScrollbars(false);
     WebCore::Settings::setUsesMockScrollAnimator(false);
-    page.inspectorController().setLegacyProfilerEnabled(false);
 #if ENABLE(VIDEO_TRACK)
     page.group().captionPreferences().setCaptionsStyleSheetOverride(emptyString());
     page.group().captionPreferences().setTestingMode(false);
@@ -1734,11 +1732,6 @@ unsigned Internals::countMatchesForText(const String& text, unsigned findOptions
     return document->frame()->editor().countMatchesForText(text, nullptr, findOptions, 1000, mark, nullptr);
 }
 
-const ProfilesArray& Internals::consoleProfiles() const
-{
-    return contextDocument()->page()->console().profiles();
-}
-
 unsigned Internals::numberOfLiveNodes() const
 {
     unsigned nodeCount = 0;
@@ -1767,17 +1760,6 @@ void Internals::closeDummyInspectorFrontend()
     m_inspectorFrontend = nullptr;
 }
 
-void Internals::setLegacyJavaScriptProfilingEnabled(bool enabled, ExceptionCode& ec)
-{
-    Page* page = contextDocument()->frame()->page();
-    if (!page) {
-        ec = INVALID_ACCESS_ERR;
-        return;
-    }
-
-    page->inspectorController().setLegacyProfilerEnabled(enabled);
-}
-
 void Internals::setInspectorIsUnderTest(bool isUnderTest, ExceptionCode& ec)
 {
     Page* page = contextDocument()->frame()->page();
index 8f1ea3dcbce69062ddcadd30a81977021744eee7..c9da79f62d5641245cc446191e98b7feb6ef84e5 100644 (file)
@@ -267,14 +267,11 @@ public:
     void insertAuthorCSS(const String&, ExceptionCode&) const;
     void insertUserCSS(const String&, ExceptionCode&) const;
 
-    const ProfilesArray& consoleProfiles() const;
-
     unsigned numberOfLiveNodes() const;
     unsigned numberOfLiveDocuments() const;
 
     RefPtr<DOMWindow> openDummyInspectorFrontend(const String& url);
     void closeDummyInspectorFrontend();
-    void setLegacyJavaScriptProfilingEnabled(bool enabled, ExceptionCode&);
     void setInspectorIsUnderTest(bool isUnderTest, ExceptionCode&);
 
     String counterValue(Element&);
index 667c8d092f3919476a4464435c173b1daea7283a..59089d8e7b1e1ba176eed814b0787ec60f6389c4 100644 (file)
@@ -260,16 +260,10 @@ enum AutoFillButtonType {
     [RaisesException] void setDeviceProximity(DOMString eventType, unrestricted double value, unrestricted double min, unrestricted double max);
 #endif
 
-    // As per spec: http://www.w3.org/TR/WebIDL/#idl-sequence
-    // "Sequences must not be used as the type of an attribute, constant or exception field."
-    // FIXME: this will lead to BUG internals.consoleProfiles !== internals.consoleProfiles as profile will always returns new array.
-    readonly attribute ScriptProfile[] consoleProfiles;
-
     unsigned long numberOfLiveNodes();
     unsigned long numberOfLiveDocuments();
     DOMWindow openDummyInspectorFrontend(DOMString url);
     void closeDummyInspectorFrontend();
-    [RaisesException] void setLegacyJavaScriptProfilingEnabled(boolean enabled);
     [RaisesException] void setInspectorIsUnderTest(boolean isUnderTest);
 
     DOMString counterValue(Element element);
index 3a40d3507bc676c2f78a9951e6556aea569dc05a..64eb4ed37dcaf2912bd3249af48a743c024ac3c1 100644 (file)
@@ -1,3 +1,18 @@
+2016-05-20  Joseph Pecoraro  <pecoraro@apple.com>
+
+        Remove LegacyProfiler
+        https://bugs.webkit.org/show_bug.cgi?id=153565
+
+        Reviewed by Saam Barati.
+
+        * Interfaces/IWebInspector.idl:
+        * WebCoreStatistics.cpp:
+        * WebInspector.cpp:
+        (WebInspector::isJavaScriptProfilingEnabled): Deleted.
+        (WebInspector::setJavaScriptProfilingEnabled): Deleted.
+        * WebInspector.h:
+        * WebView.cpp:
+
 2016-05-16  Joseph Pecoraro  <pecoraro@apple.com>
 
         Unreviewed rollout r200924. Caused js/regress/string-replace-generic.html to fail.
index 7440fe8c41a1987ab44eef49d8c472739334c0bb..4d8f03f8561c406f001ac82bfb4d3faf55112a80 100644 (file)
@@ -52,9 +52,6 @@ interface IWebInspector : IUnknown
     HRESULT isProfilingJavaScript(BOOL* isProfiling);
     HRESULT toggleProfilingJavaScript();
 
-    HRESULT isJavaScriptProfilingEnabled(BOOL* isProfilingEnabled);
-    HRESULT setJavaScriptProfilingEnabled(BOOL enabled);
-
     HRESULT isTimelineProfilingEnabled(BOOL* isEnabled);
     HRESULT setTimelineProfilingEnabled(BOOL enabled);
 }
index 7434469ce1f028016ff71b3c2def62e903d1e11d..94ae3d8b215b47ce15c2b2be8dc576bb7c1651d4 100644 (file)
@@ -29,7 +29,6 @@
 #include "COMPropertyBag.h"
 #include <JavaScriptCore/JSLock.h>
 #include <JavaScriptCore/MemoryStatistics.h>
-#include <JavaScriptCore/Profile.h>
 #include <WebCore/DOMWindow.h>
 #include <WebCore/FontCache.h>
 #include <WebCore/GCController.h>
index 91a78b350306a63446bc31a1ef77eaaf3c8da674..f6219a66daa95dc5622415b3f990375e7b7fb72c 100644 (file)
@@ -202,38 +202,6 @@ HRESULT WebInspector::toggleProfilingJavaScript()
     return S_OK;
 }
 
-HRESULT WebInspector::isJavaScriptProfilingEnabled(_Out_ BOOL* isProfilingEnabled)
-{
-    if (!isProfilingEnabled)
-        return E_POINTER;
-
-    *isProfilingEnabled = FALSE;
-
-    if (!m_inspectedWebView)
-        return S_OK;
-
-    Page* inspectedPage = m_inspectedWebView->page();
-    if (!inspectedPage)
-        return S_OK;
-
-    *isProfilingEnabled = inspectedPage->inspectorController().legacyProfilerEnabled();
-    return S_OK;
-}
-
-HRESULT WebInspector::setJavaScriptProfilingEnabled(BOOL enabled)
-{
-    if (!m_inspectedWebView)
-        return S_OK;
-
-    Page* inspectedPage = m_inspectedWebView->page();
-    if (!inspectedPage)
-        return S_OK;
-
-    inspectedPage->inspectorController().setLegacyProfilerEnabled(enabled);
-
-    return S_OK;
-}
-
 HRESULT WebInspector::evaluateInFrontend(_In_ BSTR bScript)
 {
     if (!m_inspectedWebView)
index df707cf393bad63c381d649b7f50aac22f1c7958..2794f71a3324ec03eb08034ca318a4af3b688cd3 100644 (file)
@@ -60,9 +60,6 @@ public:
     virtual HRESULT STDMETHODCALLTYPE isProfilingJavaScript(_Out_ BOOL*);
     virtual HRESULT STDMETHODCALLTYPE toggleProfilingJavaScript();
 
-    virtual HRESULT STDMETHODCALLTYPE isJavaScriptProfilingEnabled(_Out_ BOOL*);
-    virtual HRESULT STDMETHODCALLTYPE setJavaScriptProfilingEnabled(BOOL);
-
     virtual HRESULT STDMETHODCALLTYPE evaluateInFrontend(_In_ BSTR script);
 
     virtual HRESULT STDMETHODCALLTYPE isTimelineProfilingEnabled(_Out_ BOOL*);
index 671dde38957a245c172479766959694345811539..63065a514bd1d6ded2332ee16c134af6fb6844fa 100644 (file)
@@ -78,7 +78,6 @@
 #include <JavaScriptCore/InitializeThreading.h>
 #include <JavaScriptCore/JSCJSValue.h>
 #include <JavaScriptCore/JSLock.h>
-#include <JavaScriptCore/Profile.h>
 #include <WebCore/AXObjectCache.h>
 #include <WebCore/ApplicationCacheStorage.h>
 #include <WebCore/BString.h>
 #include <WebCore/HitTestResult.h>
 #include <WebCore/IntRect.h>
 #include <WebCore/JSElement.h>
-#include <WebCore/JSScriptProfile.h>
 #include <WebCore/KeyboardEvent.h>
 #include <WebCore/Logging.h>
 #include <WebCore/MIMETypeRegistry.h>