Bug 37516 - Re-write testProfilerTab to match the new profiler implementation
Summary: Re-write testProfilerTab to match the new profiler implementation
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Mikhail Naganov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 12:34 PDT by Mikhail Naganov
Modified: 2010-04-14 01:51 PDT (History)
3 users (show)

See Also:


Attachments
proposed patch (3.47 KB, patch)
2010-04-13 12:37 PDT, Mikhail Naganov
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mikhail Naganov 2010-04-13 12:34:27 PDT
Here is how js_page.html will look like:

<html>
  <head>
    <script>
      function fib(n) {
        return n < 2 ? 1 : fib(n - 1) + fib(n - 2);
      }

      function eternal_fib() {
        console.profile();
        for (var i = 0; i < 50; ++i) {
          fib(20);
        }
        console.profileEnd();
      }

      function load() {
        // Let the page do initial rendering, then go.
        setTimeout(eternal_fib, 200);
      }
    </script>
  </head>
  <body onload="load()">
  </body>
</html>
Comment 1 Mikhail Naganov 2010-04-13 12:37:03 PDT
Created attachment 53272 [details]
proposed patch
Comment 2 WebKit Commit Bot 2010-04-14 01:51:41 PDT
Comment on attachment 53272 [details]
proposed patch

Clearing flags on attachment: 53272

Committed r57571: <http://trac.webkit.org/changeset/57571>
Comment 3 WebKit Commit Bot 2010-04-14 01:51:45 PDT
All reviewed patches have been landed.  Closing bug.