tools/performance/startup/startup-test.html
author reed@reedloden.com
Tue, 29 Jan 2008 07:58:38 -0800
changeset 10915 71ec64f4a1c9eebf208e2bf5c979801c8d80a888
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 98983 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 66057 - "Proxy: $http_proxy should influence proxy settings" [p=roc@ocallahan.org (Robert O'Callahan [roc]) / diane@ghic.org (Diane Trout) / ventnor.bugzilla@yahoo.com.au (Michael Ventnor) r=josh r+sr=biesi a1.9=damons]

<!-- Pick off begin time as a cgi argument and print it out -->
<html>

<!-- call this with an arg, e.g. file://foo/startup-test.html?begin=12345678 -->

<!-- In-line this to avoid compilation. -->
<body onload="
  var now = (new Date()).getTime();  
  var begin = document.location.search.split('=')[1]; // ?begin=nnnnn
  var startupTime = now - begin;
  document.write('\n\nStartup time = ' + startupTime + ' ms<br>');
  if (window.dump) {
    dump('\n\n__startuptime,' + startupTime + '\n\n');
  }
">
</body>
</html>