1.0.3 • Published 5 years ago

performance-view v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

performanceView --- 迷你性能检测工具

	import { PerformanceView, showPerformanceInfo } from performanceView;
    // 自测性能
    // 注意start和end方法参数必须相同,即使为空
    const pv = new PerformanceView();
    pv.start('案例1');
    setTimeout(() => {
    	pv.end('案例1');
    }, 1000);
    // 查看性能相关信息
    showPerformanceInfo();