Title: [114372] trunk/PerformanceTests
Revision
114372
Author
[email protected]
Date
2012-04-17 06:35:32 -0700 (Tue, 17 Apr 2012)

Log Message

Web Inspector: the fix for test after massive rename in r114271.
https://bugs.webkit.org/show_bug.cgi?id=84147

Drive by fix. The test was renamed to heap-snapshot.html

Reviewed by Yury Semikhatsky.

* inspector/heap-snapshot.html: Renamed from PerformanceTests/inspector/detailed-heapshots-smoke-test.html.

Modified Paths

Added Paths

Removed Paths

Diff

Modified: trunk/PerformanceTests/ChangeLog (114371 => 114372)


--- trunk/PerformanceTests/ChangeLog	2012-04-17 13:29:23 UTC (rev 114371)
+++ trunk/PerformanceTests/ChangeLog	2012-04-17 13:35:32 UTC (rev 114372)
@@ -1,3 +1,14 @@
+2012-04-17  Ilya Tikhonovsky  <[email protected]>
+
+        Web Inspector: the fix for test after massive rename in r114271.
+        https://bugs.webkit.org/show_bug.cgi?id=84147
+
+        Drive by fix. The test was renamed to heap-snapshot.html
+
+        Reviewed by Yury Semikhatsky.
+
+        * inspector/heap-snapshot.html: Renamed from PerformanceTests/inspector/detailed-heapshots-smoke-test.html.
+
 2012-04-16  Yury Semikhatsky  <[email protected]>
 
         Web Inspector: rename heap profiler files and classes DetailedHeapshot* ->HeapSnapshot*

Deleted: trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html (114371 => 114372)


--- trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html	2012-04-17 13:29:23 UTC (rev 114371)
+++ trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html	2012-04-17 13:35:32 UTC (rev 114372)
@@ -1,99 +0,0 @@
-<html>
-<head>
-  <script src=""
-  <script src=""
-  <script src=""
-<script>
-
-function test()
-{
-    function performanceTest(timer)
-    {
-        var transferTimerCookie;
-        var showTimerCookie;
-        var changeViewTimerCookie;
-        var clearTimerCookie;
-
-        var fullTimerCookie = timer.start("full-summary-snapshot-time");
-        var backendTimerCookie = timer.start("take-snapshot");
-        ProfilerAgent.takeHeapSnapshot(step0);
-
-        function step0()
-        {
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildRetainers");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildDominatedNodes");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateFlags");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildAggregates");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateClassesRetainedSize");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateObjectToWindowDistance");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markDetachedDOMTreeNodes");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markQueriableHeapObjects");
-            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_splitNodesAndContainmentEdges");
-
-            timer.finish(backendTimerCookie);
-            transferTimerCookie = timer.start("transfer-snapshot");
-            var profiles = WebInspector.panels.profiles.getProfiles("HEAP");
-            WebInspector.panels.profiles.showProfile(profiles[profiles.length - 1]);
-            InspectorTest.addSniffer(WebInspector.panels.profiles, "_finishHeapSnapshot", step1);
-        }
-
-        function step1(uid)
-        {
-            timer.finish(transferTimerCookie);
-            showTimerCookie = timer.start("show-snapshot");
-            var panel = WebInspector.panels.profiles;
-            var profile = "" WebInspector.HeapSnapshotProfileType.TypeId)];
-            InspectorTest.addSniffer(profile.proxy, "_callLoadCallbacks", step2);
-        }
-
-        function step2()
-        {
-            timer.finish(showTimerCookie);
-            changeViewTimerCookie = timer.start("switch-to-containment-view");
-            InspectorTest.switchToView("Containment", cleanup);
-        }
-
-        function cleanup()
-        {
-            timer.finish(changeViewTimerCookie);
-            timer.finish(fullTimerCookie);
-            clearTimerCookie = timer.start("clear-snapshot");
-            ProfilerAgent.clearProfiles(done);
-            WebInspector.panels.profiles._reset();
-        }
-
-        function done()
-        {
-            timer.finish(clearTimerCookie);
-            timer.done("heap-snapshot");
-        }
-    }
-
-    InspectorTest.runPerformanceTest(performanceTest, 60000);
-}
-
-var counter = 0;
-
-function makeObjectsTree(deep)
-{
-    var node = {};
-    node.text = "some text " + counter;
-    if (deep === 0)
-        return node;
-    for (var i = 0; i < 2; ++i)
-        node[counter++] = makeObjectsTree(deep - 1);
-    return node;
-}
-
-function makeObjectsTree2(name, deep)
-{
-    window[name] = makeObjectsTree(deep);
-}
-
-makeObjectsTree2("t", 16);
-
-</script>
-</head>
-<body _onload_="runTest()">
-</body>
-</html>

Copied: trunk/PerformanceTests/inspector/heap-snapshot.html (from rev 114371, trunk/PerformanceTests/inspector/detailed-heapshots-smoke-test.html) (0 => 114372)


--- trunk/PerformanceTests/inspector/heap-snapshot.html	                        (rev 0)
+++ trunk/PerformanceTests/inspector/heap-snapshot.html	2012-04-17 13:35:32 UTC (rev 114372)
@@ -0,0 +1,99 @@
+<html>
+<head>
+  <script src=""
+  <script src=""
+  <script src=""
+<script>
+
+function test()
+{
+    function performanceTest(timer)
+    {
+        var transferTimerCookie;
+        var showTimerCookie;
+        var changeViewTimerCookie;
+        var clearTimerCookie;
+
+        var fullTimerCookie = timer.start("full-summary-snapshot-time");
+        var backendTimerCookie = timer.start("take-snapshot");
+        ProfilerAgent.takeHeapSnapshot(step0);
+
+        function step0()
+        {
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildRetainers");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildDominatedNodes");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateFlags");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_buildAggregates");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateClassesRetainedSize");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_calculateObjectToWindowDistance");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markDetachedDOMTreeNodes");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_markQueriableHeapObjects");
+            InspectorTest.measureFunction(WebInspector.HeapSnapshot.prototype, "_splitNodesAndContainmentEdges");
+
+            timer.finish(backendTimerCookie);
+            transferTimerCookie = timer.start("transfer-snapshot");
+            var profiles = WebInspector.panels.profiles.getProfiles("HEAP");
+            WebInspector.panels.profiles.showProfile(profiles[profiles.length - 1]);
+            InspectorTest.addSniffer(WebInspector.panels.profiles, "_finishHeapSnapshot", step1);
+        }
+
+        function step1(uid)
+        {
+            timer.finish(transferTimerCookie);
+            showTimerCookie = timer.start("show-snapshot");
+            var panel = WebInspector.panels.profiles;
+            var profile = "" WebInspector.HeapSnapshotProfileType.TypeId)];
+            InspectorTest.addSniffer(profile.proxy, "_callLoadCallbacks", step2);
+        }
+
+        function step2()
+        {
+            timer.finish(showTimerCookie);
+            changeViewTimerCookie = timer.start("switch-to-containment-view");
+            InspectorTest.switchToView("Containment", cleanup);
+        }
+
+        function cleanup()
+        {
+            timer.finish(changeViewTimerCookie);
+            timer.finish(fullTimerCookie);
+            clearTimerCookie = timer.start("clear-snapshot");
+            ProfilerAgent.clearProfiles(done);
+            WebInspector.panels.profiles._reset();
+        }
+
+        function done()
+        {
+            timer.finish(clearTimerCookie);
+            timer.done("heap-snapshot");
+        }
+    }
+
+    InspectorTest.runPerformanceTest(performanceTest, 60000);
+}
+
+var counter = 0;
+
+function makeObjectsTree(deep)
+{
+    var node = {};
+    node.text = "some text " + counter;
+    if (deep === 0)
+        return node;
+    for (var i = 0; i < 2; ++i)
+        node[counter++] = makeObjectsTree(deep - 1);
+    return node;
+}
+
+function makeObjectsTree2(name, deep)
+{
+    window[name] = makeObjectsTree(deep);
+}
+
+makeObjectsTree2("t", 16);
+
+</script>
+</head>
+<body _onload_="runTest()">
+</body>
+</html>

Property changes: trunk/PerformanceTests/inspector/heap-snapshot.html


Added: svn:mime-type

Added: svn:eol-style

_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to