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;

Remarks

This option would be true when DEBUG environment variable contains rspeedy.

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 },
})
Except as otherwise noted, this work is licensed under a Creative Commons Attribution 4.0 International License, and code samples are licensed under the Apache License 2.0.