This is the dev preview website. Check out the document at lynxjs.org

Home > @lynx-js/rspeedy > Performance > profile

Performance.profile property

Whether capture timing information in the build time and the runtime, the same as the profile config of Rspack.

Signature:

profile?: boolean | undefined;

Default Value

Rspeedy sets this to true when DEBUG contains rspeedy; otherwise it leaves the option unset.

Example

Enable profile.

  • Rsbuild will auto-generate dist/stats.json file through bundle analyzer.

  • Rspack will include the build time information when generating stats.json.

  • Frameworks like ReactLynx will include runtime information using console.profile.

import { defineConfig } from '@lynx-js/rspeedy'

export default defineConfig({
  performance: { profile: true },
})