Commit 5b10ea00 authored by Prateek Bhatnagar's avatar Prateek Bhatnagar Committed by Joe Haddad

adding duration for custom performance marks (#9592)

parent 57947ed2
......@@ -156,8 +156,8 @@ export default async ({ webpackHMR: passedWebpackHMR } = {}) => {
const { page: app, mod } = await pageLoader.loadPageScript('/_app')
App = app
if (mod && mod.unstable_onPerformanceData) {
onPerfEntry = function({ name, startTime, value }) {
mod.unstable_onPerformanceData({ name, startTime, value })
onPerfEntry = function({ name, startTime, value, duration }) {
mod.unstable_onPerformanceData({ name, startTime, value, duration })
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment