Show FCP as a vital and aggregate and send to Graphite/Influx (#3324)

This commit is contained in:
Peter Hedenskog 2021-03-26 13:31:02 +01:00 committed by GitHub
parent 297d4e12f7
commit c349e5a7ca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View File

@ -23,6 +23,15 @@ module.exports = {
);
}
if (browsertimeRunData.googleWebVitals) {
statsHelpers.pushGroupStats(
this.statsPerType,
this.groups[group],
['googleWebVitals'],
browsertimeRunData.googleWebVitals
);
}
if (browsertimeRunData.timings.largestContentfulPaint) {
statsHelpers.pushGroupStats(
this.statsPerType,

View File

@ -33,6 +33,7 @@ module.exports = [
'statistics.pageinfo.cumulativeLayoutShift',
'statistics.pageinfo.domElements',
'statistics.extras.*',
'statistics.googleWebVitals.*',
'statistics.android.batteryTemperature.*',
'markedAsFailure'
];

View File

@ -132,6 +132,12 @@ if browsertime
table
tr
th(colspan='2') Google Web Vitals
if (timings.paintTiming && timings.paintTiming['first-contentful-paint'])
tr
td
a(href=baseHelpURL + 'firstContentfulPaint') First Contentful Paint (LCP)
td.number #{h.time.ms(timings.paintTiming['first-contentful-paint'])}
if (timings.largestContentfulPaint)
tr
td