@tripo3d/lens / index / PerformancePluginOptions
Interface: PerformancePluginOptions
Defined in: src/plugins/performance/index.ts:30
PerformancePlugin 构造选项(领域私有,不进全局 InitConfig)
Extends
SlowResourceOptions
Properties
| Property | Type | Description | Inherited from | Defined in |
|---|---|---|---|---|
maxSlowResource? | number | 每会话上限(默认 20);超限后观察回调直接 return 防风暴 | SlowResourceOptions.maxSlowResource | src/plugins/performance/collectors.ts:224 |
slowResourceMs? | number | 慢资源阈值 ms(默认 1000) | SlowResourceOptions.slowResourceMs | src/plugins/performance/collectors.ts:226 |
captureSsr? | boolean | 是否采集 SSR 渲染性能:注水后读 __TRIPO_SSR_PERF__ 容器展开上报,renderId 贯穿 hydration/navigation。默认关——需服务端先注入容器、显式打开 | - | src/plugins/performance/index.ts:32 |
stalePageRefresh? | object | 长时间后台恢复刷新业务 veto;远程配置未开启时不生效 | - | src/plugins/performance/index.ts:34 |
stalePageRefresh.canReload? | () => boolean | - | - | src/plugins/performance/index.ts:35 |
webVitals? | boolean | 是否启用 Web Vitals 五项(默认 true;web-vitals 静态 import 已进主包) | - | src/plugins/performance/index.ts:38 |