# PerformanceObserver
监听性能相关事件的对象。
# 属性
属性 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
supportedEntryTypes | readonly ['resource', 'navigation', 'paint', 'mark'] | entryTypes | 否 | 当前支持的所有性能指标类型 |
# 方法
# PerformanceObserver.observe
开始监听性能数据
# PerformanceObserver.disconnect
停止监听性能数据