mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Capture loadEventEnd in test-perf.
This commit is contained in:
parent
07bd84ecc8
commit
a23b80e6e1
1 changed files with 3 additions and 1 deletions
|
@ -41,7 +41,9 @@ if (document.readyState === "complete") {
|
|||
printPerfTiming()
|
||||
window.close();
|
||||
} else {
|
||||
window.addEventListener('load', printPerfTiming);
|
||||
window.addEventListener('load', function () {
|
||||
window.setTimeout(printPerfTiming, 0);
|
||||
});
|
||||
var timeout = 5;
|
||||
window.setTimeout(function() {
|
||||
print("[PERF] Timeout after " + timeout + " min. Force stop");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue