PerformanceTimeline🧪
性能时间线事件的报告,遵循 https://w3c.github.io/performance-timeline/#dom-performanceobserver 中的规范。
EN
Reporting of performance timeline events, as specified in https://w3c.github.io/performance-timeline/#dom-performanceobserver.
✅️️ Methods
🔨PerformanceTimeline.enable
先前缓冲的事件将在方法返回前报告。另请参阅:timelineEventAdded
EN
Previously buffered events would be reported before method returns. See also: timelineEventAdded
| 参数 | 必填 | 标记 | 类型 | 描述 | 原文 |
|---|---|---|---|---|---|
| eventTypes | ✔️ | array[string] | 要报告的事件类型,依据https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype中的规定。指定的筛选条件会覆盖所有先前设置的筛选条件,传递空筛选条件则会禁用记录功能。请注意,目前并非所有在Web平台中公开的类型都受到支持。 | ENThe types of event to report, as specified in https://w3c.github.io/performance-timeline/#dom-performanceentry-entrytype The specified filter overrides any previous filters, passing empty filter disables recording. Note that not all types exposed to the web platform are currently supported. |