在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:mrdoob/stats.js开源软件地址:https://github.com/mrdoob/stats.js开源编程语言:JavaScript 100.0%开源软件介绍:stats.jsJavaScript Performance MonitorThis class provides a simple info box that will help you monitor your code performance.
ScreenshotsInstallationnpm install stats.js Usagevar stats = new Stats();
stats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom
document.body.appendChild( stats.dom );
function animate() {
stats.begin();
// monitored code goes here
stats.end();
requestAnimationFrame( animate );
}
requestAnimationFrame( animate ); BookmarkletYou can add this code to any page using the following bookmarklet: javascript:(function(){var script=document.createElement('script');script.onload=function(){var stats=new Stats();document.body.appendChild(stats.dom);requestAnimationFrame(function loop(){stats.update();requestAnimationFrame(loop)});};script.src='//mrdoob.github.io/stats.js/build/stats.min.js';document.head.appendChild(script);})() |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论