tools/performance/startup/startup-test.html
author Simon Montagu <smontagu@smontagu.org>
Mon, 11 Aug 2008 18:11:41 +0300
changeset 16555 ea563fdea8225b59c5c617ccd1d4d76c7691a969
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 447853. Remove obsolete intl/ctl module. r=ted, sr=roc

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