Unverified Commit 5f59616f authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Change names of logged times (#90688)

## What?

Reduces confusion of time spent in Next.js compared to application code
executing
parent c300a63c
......@@ -126,7 +126,7 @@ function logIncomingRequests(
frameworkTime -= middlewareTime
}
// Insert as the first item to be rendered in the list
times.unshift(['compile', frameworkTime])
times.unshift(['next.js', frameworkTime])
// Insert after compile, before render based on the execution order.
if (devGenerateStaticParamsDuration) {
......@@ -134,7 +134,10 @@ function logIncomingRequests(
times.push(['generate-params', devGenerateStaticParamsDuration])
}
times.push(['render', requestEndTime - devRequestTimingInternalsEnd])
times.push([
'application-code',
requestEndTime - devRequestTimingInternalsEnd,
])
}
return writeLine(
......
......@@ -13,7 +13,7 @@ describe('app-dir with proxy', () => {
it('should log compilation time', async () => {
await next.browser('/')
expect(next.cliOutput).toMatch(
/GET \/ 200 in .* \(compile:.*, proxy.ts:.*, render:.*\)/
/GET \/ 200 in .* \(next\.js:.*, proxy\.ts:.*, application-code:.*\)/
)
})
}
......
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