time-eventloop
v0.0.5
Published
notify when eventloop ticks are getting delayed
Downloads
1
Readme
time-eventloop
notify when eventloop ticks are getting delayed
What?
A small utility that helps you analyze the state of your amazing event loop. Will notify you when your event loop has become slower than a certain threshold.
Getting started
npm install time-eventloop
Examples
Usage:
var timeEventLoop = require('time-eventloop');
timeEventLoop.start(/* { options } */);
Options:
All options are optional. Default values can be seen from here
interval - (ms) timeloop delay checking interval
factor - constant used to evaluate the differences between real and expected times
color - warning colors according to the delay range
Testing
watches for file changes and reruns tests each time
grunt watch
runs spec tests
grunt test
produces coverage report
grunt cov
License
MIT