Skip to content

smackgg/vConsole-Stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vconsole-stats-plugin

npm version

A vConsole plugin which can show Stats in front-end.

Based on the Stats https://github.com/mrdoob/stats.js

Screenshots

demo.png

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

Demo

show demo

Usage

Download the latest version(copy dist/vconsole-stats-plugin.min.js). See all demo code: /example/demo.html

<script src="path/to/vconsole.min.js"></script>
<script src="path/to/vconsole-stats-plugin.min.js"></script>
<script>
  // init vConsole
  const vConsole = new VConsole();
  const plugin = new VConsoleStatsPlugin(vConsole);
</script>

Or, install via npm:

npm install vconsole-stats-plugin -S
import VConsole from 'vconsole';
import VConsoleStatsPlugin from 'vconsole-stats-plugin';
const vConsole = new VConsole();
const plugin = new VConsoleStatsPlugin(vConsole);

Features

  • Show/Close Stats
  • Change Stats Panel

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.

About

A vConsole plugin which can handle Cookies and Local Storage in front-end.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.8%
  • CSS 14.3%
  • HTML 13.9%