Performance
Performance 接口可以获取到当前页面中与性能相关的信息。
它是 High Resolution Time API 的一部分,同时也融合了 - High Resolution Time Level 3, Defines timeOrigin property. - High Resolution Time Level 2, Defines toJson() method. - High Resolution Time, Defines now() method.
- Performance Timeline API
- Navigation Timing API
- User Timing API
- User Timing Performance extensions, Defines mark(), clearMark(), measure() and clearMeasure() methods.
- Resource Timing API
参考
-
https://developer.mozilla.org/zh-CN/docs/Web/API/Performance
-
https://developer.mozilla.org/zh-CN/docs/Web/API/PerformanceEntry
-
https://developer.mozilla.org/zh-CN/docs/Web/API/PerformanceEntry/entryType
-
https://developer.mozilla.org/zh-CN/docs/Web/API/DOMHighResTimeStamp
-
https://developer.mozilla.org/zh-CN/docs/Web/API/Performance/navigation
-
https://www.w3.org/TR/navigation-timing/#sec-navigation-info-interface