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