mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Measure activate time of TextMate packages
This commit is contained in:
@@ -15,7 +15,7 @@ class TextMatePackage extends Package
|
||||
@activationPromise = @activationPromise.then =>
|
||||
pack.loadGrammars()
|
||||
.then -> pack.loadScopedProperties()
|
||||
.fail (error) -> console.log pack.name, error
|
||||
.fail (error) -> console.log pack.name, error.stack ? error
|
||||
|
||||
constructor: ->
|
||||
super
|
||||
@@ -29,8 +29,9 @@ class TextMatePackage extends Package
|
||||
@measure 'loadTime', =>
|
||||
@metadata = Package.loadMetadata(@path, true)
|
||||
|
||||
activate: ({sync, immediate}={})->
|
||||
TextMatePackage.addToActivationPromise(this)
|
||||
activate: ->
|
||||
@measure 'activateTime', =>
|
||||
TextMatePackage.addToActivationPromise(this)
|
||||
|
||||
activateSync: ->
|
||||
@loadGrammarsSync()
|
||||
|
||||
Reference in New Issue
Block a user