[Webkit-unassigned] [Bug 30685] New: Implement WebTiming feature in InspectorController/Timeline

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Oct 22 12:03:36 PDT 2009


https://bugs.webkit.org/show_bug.cgi?id=30685

           Summary: Implement WebTiming feature in
                    InspectorController/Timeline
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://dev.w3.org/2006/webapi/WebTiming/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: Web Inspector
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: pfeldman at chromium.org
                CC: timothy at hatcher.name


<< Pasting proposal details below >>

User latency is an important quality benchmark for Web Applications. While
JavaScript-based mechanisms can provide comprehensive instrumentations for user
latency measurements within an application, in many cases, they are unable to
provide a complete end-to-end latency picture.

For example, the following Javascript shows the time it take to fully load a
page:

<html>
<head>
<script type="text/javascript">
var start = new Date().getTime();
function onLoad() {
  var now = new Date().getTime();
  var latency = now - start;
  alert("page loading time: " + latency);
}
<script>
</head>
<body onload="onLoad()">
<!- Main page body goes from here. -->
</body>
</html>

The script calculates the time it takes to load the page after the first bit of
JavaScript in the head is executed, but it does not give any information about
the time it takes to get the page from the server.

To address the need for complete information on the user experience, this
document introduces the Timing interface. This interface allows JavaScript
mechanisms to provide complete client-side latency measurements within
applications. With the proposed interface, the previous example could be
modified to provide information about user's perceived page load time.

The following script calculates how much time has elapsed since the occurance
of a navigation event, such as the mouse click on a link.

<html>
<head>
<script type="text/javascript">
function onLoad() {
  var now = new Date().getTime();
  var latency = now - window.pageTiming.navigationTime;
  alert("User-perceived page loading time: " + latency);
}
<script>
</head>
<body onload="onLoad()">
<!- Main page body goes from here. -->
</body>
</html>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list