Rspeedy logo
Rspeedy

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 },
})
除非另有说明,本项目采用知识共享署名 4.0 国际许可协议进行许可,代码示例采用 Apache License 2.0 许可协议进行许可。