Web Inspector: Fix heap profiler performance tests.

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: http://svn.webkit.org/repository/webkit/trunk@146210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 4b6e6b1b
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
......
......@@ -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.
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment