This plugin extends Ember to allow for the collection of performance data during route, view and action events. This plugin is agnostic to where you choose to send your data as you can supply your own meaningful overrides for the plugin's various methods: log()
, warn()
, error()
, and send()
.
- To begin, you can install this plugin using Bower:
$ bower install Wikia/ember-performance-sender
- Next, include the appropriate distribution file in your dependencies, after Ember.js, but before your Ember application code
- In your Ember application code, specify an initializer or initialize
EmPerfSender
in an existing initializer:
App.initializer({
name: 'performance',
initialize: (container, application) => {
EmPerfSender.initialize( /* options */);
}
});
EmPerfSender
can be initialized with the following options:
If enabled, this will not call send for AJAX traces
Will turn on verbose logging.
Minimum time to call send()
on
The was originally based on a fork of Caliper's Ember adapter, but has since been heavily modified. Original library by Godfrey Chan.