The main-process is a NodeJS process that runs Electron.
main-processis created when the Electron application is launchedmain-processcan create Windows using Apis from Electron.main-processspawnsshared-processmain-processandshared-processcan communicate via ipc
killall electron &&
npx electron --wait src/profile.jsThis will create a profile.cpuprofile file, which can be loaded inside the chrome devtools performance panel.
Use --wait-10-seconds to keep the application attached to the terminal and quit it after 10 seconds:
time lvce --wait-10-seconds