用于获取性能数据及创建性能监听器。
方法
名称 | 类型 | 功能说明 |
---|---|---|
performance.createobserver | function | 创建全局性能事件监听器,返回 performanceobserver 对象。 |
performance.getentries | function | 返回当前缓冲区中的所有性能数据。 |
performance.getentriesbyname | function | 获取当前缓冲区中匹配指定名称的性能数据。 |
performance.getentriesbytype | function | 获取当前缓冲区中匹配指定类型的性能数据。 |
performance.mark | function | 标记自定义性能点位。 |
performance.now | function | 返回以微秒为单位的当前时间。 |
performance.setbuffersize | function | 设置缓冲区大小。 |
performance.setbatchtimeout | function | 设置缓冲批次回调延迟。 |