mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Calculate load time in index.js
Do it previously in window-bootstrap caused several things to not be included such as requiring coffee script and atom shell modules. Now it is a much more accurate representation of on load time.
This commit is contained in:
@@ -1,14 +1,10 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
startTime = Date.now()
|
||||
|
||||
require './window'
|
||||
|
||||
Atom = require './atom'
|
||||
window.atom = Atom.loadOrCreate('editor')
|
||||
atom.initialize()
|
||||
atom.startEditorWindow()
|
||||
window.atom.loadTime = Date.now() - startTime
|
||||
console.log "Window load time: #{atom.getWindowLoadTime()}ms"
|
||||
|
||||
# Workaround for focus getting cleared upon window creation
|
||||
windowFocused = ->
|
||||
|
||||
Reference in New Issue
Block a user