Commit cafdc2b8 authored by kmccullough@apple.com's avatar kmccullough@apple.com
Browse files

2008-06-24 Kevin McCullough <kmccullough@apple.com>

        -Added a manual test for the profiler.

        * manual-tests/inspector/profiler-test-compare-multiple-profiles.html: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 9c50c73f
2008-06-24 Kevin McCullough <kmccullough@apple.com>
-Added a manual test for the profiler.
* manual-tests/inspector/profiler-test-compare-multiple-profiles.html: Added.
2008-06-24 Sam Weinig <sam@webkit.org>
 
Reviewed by Anders Carlsson.
<html>
<head>
<script src="resources/profiler-test-JS-resources.js"></script>
<script>
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;
}
console.profile("Test");
test(100);
console.profileEnd("Test");
console.profile("Test");
test(1000);
console.profileEnd("Test");
</script>
</head>
<body>
This page has multiple profiles with the same name.
<br>
<br>
To use this test, 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>
\ No newline at end of file
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