tt.performance.clearMarks
收藏
我的收藏

基础库 1.60.0 开始支持本方法,低版本需做兼容处理。​
清空性能缓冲区中 name 为 [name] 的自定义性能数据。​

语法​

JavaScript
复制
tt.performance.clearMarks(name)

参数说明​

name​

类型
默认值
必填
说明
最低支持版本
string
期望清除的自定义性能数据的 name
1.60.0

返回值​

无​

代码示例​

javascript
复制
tt.performance && tt.performance.mark("bytedance");
tt.performance && tt.performance.clearMarks("bytedance");

Bug & Tip​

无​