Get the correct fully loaded #2272 (#2278)

This commit is contained in:
Peter Hedenskog 2019-01-31 13:12:15 +01:00 committed by GitHub
parent e650a25bc7
commit f5ce6c7851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -193,6 +193,10 @@ module.exports = {
run.cpu = result[resultIndex].cpu[runIndex];
}
if (result[resultIndex].fullyLoaded) {
run.fullyLoaded = result[resultIndex].fullyLoaded[runIndex];
}
run.timestamp = dayjs(
result[resultIndex].timestamps[runIndex]
).format(TIME_FORMAT);

View File

@ -55,7 +55,7 @@ block content
if d.browsertime && d.browsertime.run
tr
td Fully loaded:
td #{h.time.ms(d.browsertime.run.timings.fullyLoaded)}
td #{h.time.ms(d.browsertime.run.fullyLoaded.toFixed(0))}
if d.browsertime && d.browsertime.run && d.browsertime.run.visualMetrics
tr
td First Visual Change:

View File

@ -96,11 +96,17 @@ if browsertime
td
a(href=baseHelpURL + 'rumSpeedIndex') RUM Speed Index
td.number #{h.time.ms(timings.rumSpeedIndex.toFixed(0))}
if (timings.fullyLoaded)
tr
td
a(href=baseHelpURL + 'fullyLoaded') Fully loaded
td.number #{h.time.ms(timings.fullyLoaded.toFixed(0))}
else if (browsertime.fullyLoaded)
tr
td
a(href=baseHelpURL + 'fullyLoaded') Fully loaded
td.number #{h.time.ms(browsertime.fullyLoaded.toFixed(0))}
if (Object.keys(timings.userTimings.marks).length > 0 || Object.keys(timings.userTimings.measures).length > 0)
table
tr