The main-process
is a NodeJS process that runs Electron.
main-process
is created when the Electron application is launchedmain-process
can create Windows using Apis from Electron.main-process
spawnsshared-process
main-process
andshared-process
can communicate via ipc
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.