Skip to content

@tripo3d/lens / index / PerformancePluginOptions

Interface: PerformancePluginOptions ​

Defined in: src/plugins/performance/index.ts:30

PerformancePlugin 构造选项(领域私有,不进全局 InitConfig)

Extends ​

  • SlowResourceOptions

Properties ​

PropertyTypeDescriptionInherited fromDefined in
maxSlowResource?number每会话上限(默认 20);超限后观察回调直接 return 防风暴SlowResourceOptions.maxSlowResourcesrc/plugins/performance/collectors.ts:224
slowResourceMs?number慢资源阈值 ms(默认 1000)SlowResourceOptions.slowResourceMssrc/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

基于 MIT 协议发布(内部使用)