Web Inspector: Fix heap profiler performance tests.
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2013 16:06:42 +0000 (16:06 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 19 Mar 2013 16:06:42 +0000 (16:06 +0000)
https://bugs.webkit.org/show_bug.cgi?id=112701

Patch by Alexei Filippov <alph@chromium.org> on 2013-03-19
Reviewed by Yury Semikhatsky.

The tests were broken by profile types refactoring.

* inspector/heap-snapshot-performance-test.js:
(test.performanceTest.step0):
(test.performanceTest.step1):

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

PerformanceTests/ChangeLog
PerformanceTests/inspector/heap-snapshot-performance-test.js

index 073c4cf..0f3f87d 100644 (file)
@@ -1,3 +1,16 @@
+2013-03-19  Alexei Filippov  <alph@chromium.org>
+
+        Web Inspector: Fix heap profiler performance tests.
+        https://bugs.webkit.org/show_bug.cgi?id=112701
+
+        Reviewed by Yury Semikhatsky.
+
+        The tests were broken by profile types refactoring.
+
+        * inspector/heap-snapshot-performance-test.js:
+        (test.performanceTest.step0):
+        (test.performanceTest.step1):
+
 2013-03-05  Eric Seidel  <eric@webkit.org>
 
         Add html-parser-threaded perf test now that the threaded parser is enabled by default
index aa7ab35..b59a5e0 100644 (file)
@@ -33,9 +33,10 @@ function test()
         {
             timer.finish(backendTimerCookie);
             transferTimerCookie = timer.start("transfer-snapshot");
-            var profiles = WebInspector.panels.profiles.getProfiles("HEAP");
+            var type = WebInspector.panels.profiles.getProfileType("HEAP");
+            var profiles = type.getProfiles();
             WebInspector.panels.profiles._showProfile(profiles[profiles.length - 1]);
-            InspectorTest.addSniffer(WebInspector.panels.profiles, "_finishHeapSnapshot", step1);
+            InspectorTest.addSniffer(type, "finishHeapSnapshot", step1);
         }
 
         function step1(uid)
@@ -43,7 +44,7 @@ function test()
             timer.finish(transferTimerCookie);
             showTimerCookie = timer.start("show-snapshot");
             var panel = WebInspector.panels.profiles;
-            var profile = panel._profilesIdMap[panel._makeKey(uid, WebInspector.HeapSnapshotProfileType.TypeId)];
+            var profile = panel.getProfile("HEAP", uid);
             profile.load(step2); // Add load callback.
         }