Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@drecom/stats.js

Package Overview
Dependencies
Maintainers
3
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@drecom/stats.js

JavaScript Performance Monitor

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@drecom/stats.js

npm license

@drecom/stats.js is a customized mrdoob/stats.js

What changed?

  • Combined all the stats.js monitors into one.
  • Added getters of various parameters.
  • Added text display area.
  • Reduced drawing load. (but, reduced drawing frequency. Optional changeable.)

customized.png

  • FPS Frames rendered in the last second. The higher the number the better.
  • MS Maximum number of milliseconds between graph drawing. The lower the number the better.
  • MB MBytes of allocated js memory. (Enabled by default in Chrome for desktop 69 and later)

Usage

var stats = new Stats({maxFPS:60, maxMem:100}); // Set upper limit of graph
document.body.appendChild( stats.dom );

function animate() {

    stats.begin();

    // monitored code goes here

    stats.end();

    requestAnimationFrame( animate );
}

animate();

Keywords

FAQs

Package last updated on 05 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc