For AI agents: the complete documentation index is available at /next/zh/llms.txt, the full documentation bundle is available at /next/zh/llms-full.txt, and this page is available as Markdown at /next/zh/api/build/performance/profile.md.
Lynx
  • 简体中文
  • performance.profile

    optional profile?: boolean

    Lynx 新增配置

    此配置由 pluginLynx 新增,不属于 Rsbuild 配置。在 rsbuild.config.ts 中,将它传给 pluginLynx({ ... })。

    是否在 ReactLynx 等 Lynx 运行时集成中采集耗时信息。

    备注

    开启后,框架会通过 console.profile 输出运行时信息。

    默认值

    当 DEBUG=lynx 时为 true,否则为 undefined

    示例

    import { defineConfig } from '@rsbuild/core'
    import { pluginLynx } from '@lynx-js/rsbuild-plugin'
    
    export default defineConfig({
      plugins: [
        pluginLynx({
          performance: { profile: true },
        }),
      ],
    })
    除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。