For AI agents: the complete documentation index is available at /next/llms.txt, the full documentation bundle is available at /next/llms-full.txt, and this page is available as Markdown at /next/api/rspeedy/rspeedy.performance.profile.md.
Rspeedy logo
Rspeedy
  • English
  • Home > @lynx-js/rspeedy > Performance > profile

    Performance.profile property

    Whether capture timing information in Lynx runtime integrations such as ReactLynx.

    Signature:

    profile?: boolean | undefined;

    Default Value

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

    Example

    Enable profile.

    • Frameworks like ReactLynx will include runtime information using console.profile. - Rspeedy will emit dist/stats.json after build for bundle analysis compatibility.
    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.