title: Enabling Manual Garbage Collection in Electron app
body: <p>I have been trying to get Garbage Collection and Max Old Space Size configured in our compiled and built Electron app.</p>
  
  <p>I am able to debug with these settings on through the CLI <code>electron.cmd --js-flags="--expose_gc --max-old-space-size=128" .</code> and the Global GC is available.</p>
  
  <p>However when I try and use the electron API <code>app.commandLine.appendArgument('--js-flags', '--expose_gc --max-old-space-size=128');</code> to set these flags it doesn't enable GC as expected, this code is being called before the <code>app.on('ready', ...)</code> function.</p>
  
  <p>Nor does setting NODE_OPTIONS help (I see that this has been disabled in the latest Electron version as per here: <a href="https://github.com/electron/electron/issues/12695" rel="noreferrer">https://github.com/electron/electron/issues/12695</a>)</p>
  
  <p>Does anyone have experience getting this working?</p>