tools/performance/startup/startup-test.html
author Henri Sivonen <hsivonen@hsivonen.fi>
Wed, 16 Oct 2013 04:46:10 +0300
changeset 150948 2ba9f3b24b8a54fd3a76a8aa91b6fc56d395c755
parent 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 871161 - Stop inheriting charset where other browsers do not inherit it. r=bzbarsky.

<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<!-- 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>