mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Log app start time similarly to window start time
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
startTime = new Date().getTime()
|
||||
|
||||
autoUpdater = require 'auto-updater'
|
||||
crashReporter = require 'crash-reporter'
|
||||
delegate = require 'atom-delegate'
|
||||
@@ -53,6 +55,7 @@ delegate.browserMainParts.preMainMessageLoopRun = ->
|
||||
AtomApplication = require 'atom-application'
|
||||
|
||||
AtomApplication.open(args)
|
||||
console.log("App load time #{new Date().getTime() - startTime}ms")
|
||||
|
||||
global.devResourcePath = path.join(app.getHomeDir(), 'github', 'atom')
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Like sands through the hourglass, so are the days of our lives.
|
||||
date = new Date().getTime()
|
||||
startTime = new Date().getTime()
|
||||
|
||||
require './atom'
|
||||
require './window'
|
||||
|
||||
window.setUpEnvironment('editor')
|
||||
window.startEditorWindow()
|
||||
console.log "Load time: #{new Date().getTime() - date}"
|
||||
console.log "Window load time: #{new Date().getTime() - startTime}ms"
|
||||
|
||||
Reference in New Issue
Block a user