Package Exports
- on-performance
- on-performance/browser.js
- on-performance/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (on-performance) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
on-performance 
Listen for performance timeline events and clears them after usage. Returns a singleton. Can be used in both node and browser environments.
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.