1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/tools/performance/startup/startup-test.html Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,21 @@ 1.4 +<!-- This Source Code Form is subject to the terms of the Mozilla Public 1.5 + - License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 + - file, You can obtain one at http://mozilla.org/MPL/2.0/. --> 1.7 + 1.8 +<!-- Pick off begin time as a cgi argument and print it out --> 1.9 +<html> 1.10 + 1.11 +<!-- call this with an arg, e.g. file://foo/startup-test.html?begin=12345678 --> 1.12 + 1.13 +<!-- In-line this to avoid compilation. --> 1.14 +<body onload=" 1.15 + var now = (new Date()).getTime(); 1.16 + var begin = document.location.search.split('=')[1]; // ?begin=nnnnn 1.17 + var startupTime = now - begin; 1.18 + document.write('\n\nStartup time = ' + startupTime + ' ms<br>'); 1.19 + if (window.dump) { 1.20 + dump('\n\n__startuptime,' + startupTime + '\n\n'); 1.21 + } 1.22 +"> 1.23 +</body> 1.24 +</html>