stats.js:JavaScript性能监视器

时间:2021-04-05 21:33:06
【文件属性】:
文件名称:stats.js:JavaScript性能监视器
文件大小:52KB
文件格式:ZIP
更新时间:2021-04-05 21:33:06
JavaScript stats.js JavaScript性能监视器 此类提供了一个简单的信息框,可帮助您监视代码性能。 FPS在最后一秒内渲染的帧。 数字越高越好。 MS毫秒需要渲染的帧。 数值越低越好。 MB MB已分配的内存。 (使用--enable-precise-memory-info运行Chrome) CUSTOM自定义面板支持。 屏幕截图 安装 npm install stats.js 用法 var 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
【文件预览】:
stats.js-master
----rollup.config.js(239B)
----.github()
--------FUNDING.yml(17B)
----bower.json(309B)
----src()
--------Stats.js(3KB)
----examples()
--------custom.html(1KB)
--------stress.html(798B)
--------basic.html(1KB)
----LICENSE(1KB)
----build()
--------stats.js(4KB)
--------stats.min.js(2KB)
--------stats.module.js(3KB)
----README.md(2KB)
----.gitignore(13B)
----files()
--------custom.png(10KB)
--------ms.png(9KB)
--------mb.png(10KB)
--------fps.png(10KB)
----package-lock.json(10KB)
----package.json(871B)

网友评论