1.0.0 • Published 8 years ago

@rill/stats v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

Adds a simple browser performance monitoring to a Rill app. The performance monitoring is powered by stats.js.

Installation

npm install @rill/stats

Example

var app = require('rill')()
var stats = require('@rill/stats')

// Every request will be measured with stats.js.
app.use(stats({ mode: "ms" }))

Default modes

(Click on the frame to switch between modes).

{
	"ms" // monitor (avg) ms during requests.
	"mb" // monitor current MBytes of allocated memory.
	"fps"// monitor (avg) fps during requests (typically useless).
}

Production Use

@rill/stats exposes a noop function when "process.env.NODE_ENV" is true. This allows for build tools such as babel, browserify or webpack to remove this functionality for production sites.

Contributions

  • Use npm test to run tests.

Please feel free to create a PR!

1.0.0

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago