Unverified Commit f5f55922 authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Fix NEXT_CPU_PROF during development (#81248)

## What?

`next dev` spawns a forked process that wouldn't be instrumented because
`cpu-profile.ts` only runs in `cli/next-dev.ts` which is the process
that boots the forked process. This adds the initialization to the
forked process too.
parent e2422f4c
// Start CPU profile if it wasn't already started.
import './cpu-profile'
import { getNetworkHost } from '../../lib/get-network-host'
if (performance.getEntriesByName('next-start').length === 0) {
......
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