Skip to content

Repository files navigation

main-process

The main-process is a NodeJS process that runs Electron.

  • main-process is created when the Electron application is launched
  • main-process can create Windows using Apis from Electron.
  • main-process spawns shared-process
  • main-process and shared-process can communicate via ipc

Profiling the main process

killall electron &&
npx electron --wait src/profile.js

This will create a profile.cpuprofile file, which can be loaded inside the chrome devtools performance panel.

Benchmarking application startup

Use --wait-10-seconds to keep the application attached to the terminal and quit it after 10 seconds:

time lvce --wait-10-seconds

About

Main Process

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages