{"_id":"stats.js","_rev":"680388","name":"stats.js","description":"JavaScript Performance Monitor","dist-tags":{"latest":"0.17.0"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"time":{"modified":"2021-08-30T02:34:35.000Z","created":"2015-05-14T19:32:11.868Z","0.17.0":"2016-10-29T01:18:40.513Z","0.16.0":"2016-04-11T15:19:35.739Z","0.0.16":"2016-04-11T14:28:30.113Z","0.0.14-master":"2015-09-21T05:16:00.205Z","0.0.14":"2015-09-21T05:08:58.381Z","1.0.0":"2015-05-14T19:32:11.868Z"},"users":{"izinin":true,"lotuslwb":true,"xiaochao":true,"darahak":true,"kochie":true,"xrush":true},"author":{"name":"mrdoob"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"versions":{"0.17.0":{"name":"stats.js","version":"0.17.0","description":"JavaScript Performance Monitor","main":"build/stats.min.js","directories":{"example":"examples"},"files":["build","src"],"scripts":{"build":"rollup -c","build-uglify":"rollup -c && uglifyjs build/stats.js -cm --preamble \"// stats.js - http://github.com/mrdoob/stats.js\" > build/stats.min.js","build-closure":"rollup -c && java -jar utils/compiler/closure-compiler-v20160713.jar --language_in=ECMASCRIPT5_STRICT --js build/stats.js --js_output_file build/stats.min.js","test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"mrdoob"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","devDependencies":{"rollup":"^0.36.0","uglifyjs":"^2.4.10"},"gitHead":"5f0f917354ea2184456e5e361da5df6166306fbf","_id":"stats.js@0.17.0","_shasum":"b1c3dc46d94498b578b7fd3985b81ace7131cc7d","_from":".","_npmVersion":"2.15.1","_nodeVersion":"4.4.4","_npmUser":{"name":"mrdoob","email":"info@mrdoob.com"},"dist":{"shasum":"b1c3dc46d94498b578b7fd3985b81ace7131cc7d","size":3341,"noattachment":false,"key":"/stats.js/-/stats.js-0.17.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-0.17.0.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/stats.js-0.17.0.tgz_1477703918618_0.9200239677447826"},"publish_time":1477703920513,"_cnpm_publish_time":1477703920513,"_hasShrinkwrap":false},"0.16.0":{"name":"stats.js","version":"0.16.0","description":"JavaScript Performance Monitor","main":"build/stats.min.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"mrdoob"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","gitHead":"ad9f55c2de36fb0bd37e70f9da14bd27ee618d74","_id":"stats.js@0.16.0","_shasum":"097b4ff93b807d9320bc6bcd32687ebeb17f096f","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"mrdoob","email":"info@mrdoob.com"},"dist":{"shasum":"097b4ff93b807d9320bc6bcd32687ebeb17f096f","size":5730392,"noattachment":false,"key":"/stats.js/-/stats.js-0.16.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-0.16.0.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/stats.js-0.16.0.tgz_1460387974341_0.3377626047004014"},"publish_time":1460387975739,"_cnpm_publish_time":1460387975739,"_hasShrinkwrap":false},"0.0.16":{"name":"stats.js","version":"0.0.16","description":"JavaScript Performance Monitor","main":"builds/stats.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"mrdoob"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","gitHead":"4ebe0c467ae368adcd4fc91befbf6190bf4e9d37","_id":"stats.js@0.0.16","_shasum":"551739b2940b55be46063c89867b7015e94a9a58","_from":".","_npmVersion":"2.11.3","_nodeVersion":"0.12.7","_npmUser":{"name":"mrdoob","email":"info@mrdoob.com"},"dist":{"shasum":"551739b2940b55be46063c89867b7015e94a9a58","size":5730388,"noattachment":false,"key":"/stats.js/-/stats.js-0.0.16.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-0.0.16.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/stats.js-0.0.16.tgz_1460384905154_0.5364095414988697"},"publish_time":1460384910113,"_cnpm_publish_time":1460384910113,"_hasShrinkwrap":false},"0.0.14-master":{"name":"stats.js","version":"0.0.14-master","description":"JavaScript Performance Monitor","main":"src/Stats.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"Mr.doob","email":"info@mrdoob.com"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","_id":"stats.js@0.0.14-master","_shasum":"3a45ab5c3a6c06cfef263553ac6dcffb8ef03720","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"lmacsen","email":"liviu@ideveloper.ro"},"dist":{"shasum":"3a45ab5c3a6c06cfef263553ac6dcffb8ef03720","size":5723674,"noattachment":false,"key":"/stats.js/-/stats.js-0.0.14-master.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-0.0.14-master.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"publish_time":1442812560205,"_cnpm_publish_time":1442812560205,"_hasShrinkwrap":false},"0.0.14":{"name":"stats.js","version":"0.0.14","description":"JavaScript Performance Monitor","main":"src/Stats.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"Mr.doob","email":"info@mrdoob.com"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","_id":"stats.js@0.0.14","_shasum":"7b17eb9974148a0be5e50fe965e27a0d63862122","_from":".","_npmVersion":"2.14.2","_nodeVersion":"4.0.0","_npmUser":{"name":"lmacsen","email":"liviu@ideveloper.ro"},"dist":{"shasum":"7b17eb9974148a0be5e50fe965e27a0d63862122","size":4978940,"noattachment":false,"key":"/stats.js/-/stats.js-0.0.14.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-0.0.14.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"publish_time":1442812138381,"_cnpm_publish_time":1442812138381,"_hasShrinkwrap":false},"1.0.0":{"name":"stats.js","version":"1.0.0","description":"JavaScript Performance Monitor","main":"src/Stats.js","directories":{"example":"examples"},"scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"https://github.com/mrdoob/stats.js.git"},"keywords":["performance","fps","stats"],"author":{"name":"Mr.doob","email":"info@mrdoob.com"},"license":"MIT","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"homepage":"https://github.com/mrdoob/stats.js","_id":"stats.js@1.0.0","_shasum":"ca304e56b116a3f46413acc349eb6eee19df688e","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"lmacsen","email":"liviu@ideveloper.ro"},"dist":{"shasum":"ca304e56b116a3f46413acc349eb6eee19df688e","size":4978572,"noattachment":false,"key":"/stats.js/-/stats.js-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/stats.js/download/stats.js-1.0.0.tgz"},"maintainers":[{"name":"mrdoob","email":"info@mrdoob.com"}],"publish_time":1431631931868,"_cnpm_publish_time":1431631931868,"_hasShrinkwrap":false}},"readme":"stats.js\n========\n\n#### JavaScript Performance Monitor ####\n\nThis class provides a simple info box that will help you monitor your code performance.\n\n* **FPS** Frames rendered in the last second. The higher the number the better.\n* **MS** Milliseconds needed to render a frame. The lower the number the better.\n* **MB** MBytes of allocated memory. (Run Chrome with `--enable-precise-memory-info`)\n* **CUSTOM** User-defined panel support.\n\n\n### Screenshots ###\n\n![fps.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/fps.png)\n![ms.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/ms.png)\n![mb.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/mb.png)\n![custom.png](https://raw.githubusercontent.com/mrdoob/stats.js/master/files/custom.png)\n\n\n### Usage ###\n\n```javascript\nvar stats = new Stats();\nstats.showPanel( 1 ); // 0: fps, 1: ms, 2: mb, 3+: custom\ndocument.body.appendChild( stats.dom );\n\nfunction animate() {\n\n\tstats.begin();\n\n\t// monitored code goes here\n\n\tstats.end();\n\n\trequestAnimationFrame( animate );\n\n}\n\nrequestAnimationFrame( animate );\n```\n\n\n### Bookmarklet ###\n\nYou can add this code to any page using the following bookmarklet:\n\n```javascript\njavascript:(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='//rawgit.com/mrdoob/stats.js/master/build/stats.min.js';document.head.appendChild(script);})()\n```\n","_attachments":{},"homepage":"https://github.com/mrdoob/stats.js","bugs":{"url":"https://github.com/mrdoob/stats.js/issues"},"license":"MIT"}