{"record":{"id":"41c7d09aa6d3902d","repo":"vercel/next.js","slug":"profiling-is-enabled-note-this-may-affect-perfor","errorCode":null,"errorMessage":"Profiling is enabled. Note: This may affect performance.","messagePattern":"Profiling is enabled\\. Note: This may affect performance\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/next/src/cli/next-analyze.ts","lineNumber":40,"sourceCode":"  process.on('SIGTERM', () => {\n    saveCpuProfile()\n    process.exit(143)\n  })\n  process.on('SIGINT', () => {\n    saveCpuProfile()\n    process.exit(130)\n  })\n\n  const { profile, mangling, experimentalAppOnly, output, port } = options\n\n  if (!mangling) {\n    warn(\n      `Mangling is disabled. ${italic('Note: This may affect performance and should only be used for debugging purposes.')}`\n    )\n  }\n\n  if (profile) {\n    warn(\n      `Profiling is enabled. ${italic('Note: This may affect performance.')}`\n    )\n  }\n\n  const dir = getProjectDir(directory)\n\n  if (!existsSync(dir)) {\n    printAndExit(`> No such directory exists as the project root: ${dir}`)\n  }\n\n  return analyze({\n    dir,\n    reactProductionProfiling: profile,\n    noMangling: !mangling,\n    appDirOnly: experimentalAppOnly,\n    output,\n    port,\n  })","sourceCodeStart":22,"sourceCodeEnd":58,"githubUrl":"https://github.com/vercel/next.js/blob/0eb377541648e63402a47b38fee00a8d0ce8f8f1/packages/next/src/cli/next-analyze.ts#L22-L58","documentation":"Informational warning printed by the next-analyze CLI at startup when the --profile flag is set. It tells the developer that CPU profiling instrumentation is active for the analysis run and that collecting the profile adds overhead, so timings and metrics measured during this run are not representative of normal performance.","triggerScenarios":"Thrown at packages/next/src/cli/next-analyze.ts:40 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Disable profiling when not needed to avoid the performance overhead."],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0eb377541648e63402a47b38fee00a8d0ce8f8f1","analyzedAt":"2026-08-19T02:10:13.922Z","contentChangedAt":"2026-08-19T02:10:13.922Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}