1.0.0 • Published 6 years ago

performance_qtt v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

#Performance使用文档

###一、安装

npm install performance --save

###二、加载依赖

import Performance from 'performance';

###三、调用

new Performance({
	url: "//log.1sapp.com/a.gif?cmd=9073",  //上报数据接口
	rate: 0.2,							//抽样
	data: {}							//额外扩展参数
})

###四、参数说明 | 场景(cmd) | 字段 | 类型 | 说明 | | :---- | :---- | :----: | :---- | |H5性能检测数据上报(9073)| unload_time | int | 上个页面卸载耗时 | || redirect_time | int | 页面重定向耗时 | || dns_time | int | DNS查询耗时 | || tcp_time | int | TCP连接耗时 | || response_tiem | int | 服务器响应耗时 | || download_time | int | 网页下载耗时 | || paint_tiem | int | 页面首次渲染耗时 | || domready_time | int | 用户可操作 | || white_time | int | 页面白屏时间 | || onload_time | int | 页面onload耗时 | || render_time | int | 页面渲染耗时 |