Browse Source

Merge pull request #488 from mrfelton/perf/profile-app-startup

Add logging to show boot time
renovate/lint-staged-8.x
Ben Woosley 7 years ago
committed by GitHub
parent
commit
09137cd150
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      app/main.dev.js

6
app/main.dev.js

@ -87,6 +87,7 @@ const sendStartOnboarding = () => {
clearInterval(sendStartOnboardingInterval)
if (mainWindow) {
mainLog.timeEnd('Time until onboarding has started')
mainLog.info('STARTING ONBOARDING')
mainWindow.webContents.send('startOnboarding')
}
@ -263,6 +264,9 @@ app.on('window-all-closed', () => {
})
app.on('ready', async () => {
mainLog.time('Time until app is visible')
mainLog.time('Time until onboarding has started')
if (process.env.NODE_ENV === 'development' || process.env.DEBUG_PROD === 'true') {
await installExtensions()
}
@ -289,7 +293,7 @@ app.on('ready', async () => {
if (!mainWindow) {
throw new Error('"mainWindow" is not defined')
}
mainLog.timeEnd('Time until app is visible')
mainWindow.show()
mainWindow.focus()

Loading…
Cancel
Save