performance-view
v1.0.3
Published
纯js无依赖的检测网站性能工具
Readme
performanceView --- 迷你性能检测工具
import { PerformanceView, showPerformanceInfo } from performanceView;
// 自测性能
// 注意start和end方法参数必须相同,即使为空
const pv = new PerformanceView();
pv.start('案例1');
setTimeout(() => {
pv.end('案例1');
}, 1000);
// 查看性能相关信息
showPerformanceInfo();