MCPcopy Index your code
hub / github.com/mrdoob/stats.js

github.com/mrdoob/stats.js @r17

repository ↗ · DeepWiki ↗ · release r17 ↗ · Ask this repo → · + Follow
3 symbols 5 edges 2 files 0 documented · 0% updated 21mo agor17 · 2016-10-29★ 9,134
README

stats.js

JavaScript Performance Monitor

This class provides a simple info box that will help you monitor your code performance.

  • FPS Frames rendered in the last second. The higher the number the better.
  • MS Milliseconds needed to render a frame. The lower the number the better.
  • MB MBytes of allocated memory. (Run Chrome with --enable-precise-memory-info)
  • CUSTOM User-defined panel support.

Screenshots

fps.png ms.png mb.png custom.png

Usage

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 goes here

    stats.end();

    requestAnimationFrame( animate );

}

requestAnimationFrame( animate );

Bookmarklet

You 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='//rawgit.com/mrdoob/stats.js/master/build/stats.min.js';document.head.appendChild(script);})()

Core symbols most depended-on inside this repo

addPanel
called by 3
src/Stats.js
showPanel
called by 2
src/Stats.js
Stats
called by 0
src/Stats.js

Shape

Function 3

Languages

TypeScript100%

Modules by API surface

src/Stats.js3 symbols

Dependencies from manifests, versioned

rollup0.36.0 · 1×
uglifyjs2.4.10 · 1×

For agents

$ claude mcp add stats.js \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact