on-performance ![stability](https://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square)
![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square)
Listen for performance timeline events and clears them after usage. Returns a
singleton.
Usage
var onPerformance = require('on-performance')
onPerformance(function (entry) {
console.log('entry: ', entry.entryType, entry)
})
API
stop = onPerformance(callback(entry))
Listen for performance events. Returns a singleton (e.g. multiple calls to this
method are registered on the same listener). If multiple instances are created
during the first tick, all initial events will be played back to all instances.
stop()
Stop the observer.
License
MIT