mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Track duration of grammar preload
This commit is contained in:
@@ -280,9 +280,11 @@ class Atom extends Model
|
||||
delete @state.packageStates
|
||||
|
||||
preloadGrammarsForOpenEditors: ->
|
||||
startTime = Date.now()
|
||||
packagesWithActiveGrammars = @state.packagesWithActiveGrammars ? []
|
||||
for packageName in packagesWithActiveGrammars
|
||||
@packages.getLoadedPackage(packageName)?.loadGrammarsSync()
|
||||
atom.preloadGrammarTime = Date.now() - startTime
|
||||
|
||||
deserializeEditorWindow: ->
|
||||
@deserializePackageStates()
|
||||
|
||||
Reference in New Issue
Block a user