2024-12-31 · Anthony Fu (antfu)

CPU Profiling Nuxt

infrastructure

read at source ↗ antfu.me

CPU Profiling Nuxt

Source: Anthony Fu (antfu) Date: 2024-12-31 URL: https://antfu.me/posts/nuxt-cpuprofile

Summary

Tooling how-to post on CPU profiling Nuxt applications: since nuxi dev doesn’t accept --cpu-prof directly, the workaround is invoking the CLI through Node with --fork=false (required to prevent Nuxt from spawning a forked process that breaks profiling). Fu recommends his VS Code extension for .cpuprofile visualization.

Implications

A practical debugging reference for anyone hitting Nuxt build performance issues. The --fork=false gotcha is non-obvious and worth documenting. The VS Code extension he mentions — for .cpuprofile visualization — reflects the same tooling instinct seen throughout his work: if the standard tools aren’t good enough, build a better one.

← all signals