Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/thejmazz/whs-module-statsjs

WhitestormJS module for JavaScript Performance Monitor ⚡⌛
https://github.com/thejmazz/whs-module-statsjs

Last synced: 19 days ago
JSON representation

WhitestormJS module for JavaScript Performance Monitor ⚡⌛

Awesome Lists containing this project

README

        

# whs-module-statsjs - Module for JavaScript Performance Monitor
[![NPM Version](https://img.shields.io/npm/v/whs-module-statsjs.svg?style=flat-square)](https://www.npmjs.com/package/whs-module-statsjs)
> Based of [stats.js](https://github.com/mrdoob/stats.js). Thanks to [@mrdoob](https://github.com/mrdoob)

> Go to [WhitestormJS/whitestorm.js](https://github.com/WhitestormJS/whitestorm.js)

## Usage

```javascript
const app = new WHS.App([
new WHS.app.ElementModule(), // This module is required
// other modules
new StatsModule(StatsModule.codes.fps) // or just "0"
]);
```

## Exported dependencies

Name | Description | Alias
--------|--------------------------------------------------------------------------|------
`stats` | `Stats` object provided by [stats.js](https://github.com/mrdoob/stats.js)| `app.$stats`

See [stats.js example](https://github.com/mrdoob/stats.js#usage) for full codes list

## Screenshots

![Screenshot](http://i.imgur.com/TMUoJ88.png)