抖音开放平台Logo
开发者文档
“/”唤起搜索
控制台

tt.performance.getEntriesByType
收藏
我的收藏

基础库 3.41.0 开始支持本方法,低版本需做兼容处理。这是一个同步方法。
获取当前缓冲区中所有类型为 [entryType] 的性能数据。

语法

tt.performance.getEntriesByType(entryType)

参数说明

entryType

类型
默认值
必填
说明
最低支持版本
string
期望获取的性能数据 entryType
3.41.0

返回值

Array, PerformanceEntry 集合。

扫码体验

代码示例

Bug & Tip