Added first level instrumentation for travis-web
This is not enabled by default. You need to run: Travis.Instrumentation.subscribe('render.view') To start capturing info
This commit is contained in:
parent
91812fb21c
commit
fa7f8b9332
|
@ -13,6 +13,7 @@ require 'views'
|
|||
require 'config/locales'
|
||||
require 'data/sponsors'
|
||||
|
||||
require 'travis/instrumentation'
|
||||
# $.mockjaxSettings.log = false
|
||||
# Ember.LOG_BINDINGS = true
|
||||
# Ember.ENV.RAISE_ON_DEPRECATION = true
|
||||
|
|
8
assets/scripts/lib/travis/instrumentation.coffee
Normal file
8
assets/scripts/lib/travis/instrumentation.coffee
Normal file
|
@ -0,0 +1,8 @@
|
|||
Travis.Instrumentation = {
|
||||
subscribe: (event) ->
|
||||
Em.subscribe event,
|
||||
before:(name, timestamp, payload) ->
|
||||
timestamp
|
||||
after: (name, timestamp, payload, start_timestamp) ->
|
||||
console.log(name, payload, timestamp - start_timestamp)
|
||||
}
|
Loading…
Reference in New Issue
Block a user