title: Is it possible to use window.performance.memory in headless chrome?
body: <p>I want to use window.performance.memory to measure if I have any memory leaks in my headless chrome tests.</p>
  
  <p><strong>In Tests:</strong></p>
  
  <pre><code>    beforeEach(() =&gt; {
          $('body').append(initHtml);
          console.log(window.performance.memory)
      });
  </code></pre>
  
  <p>Results in:<code>MemoryInfo {}</code></p>
  
  <p><strong>In dev console:</strong></p>
  
  <pre><code>console.log(window.performance.memory)
  </code></pre>
  
  <p>Results in:
  <code>MemoryInfo {totalJSHeapSize: 27600000, usedJSHeapSize: 16100000, jsHeapSizeLimit: 1530000000}</code></p>
  
  <p><strong>My Karma.conf includes this:</strong></p>
  
  <pre><code>browsers: ['Chrome_with_memory_tests'],
  customLaunchers: {
      Chrome_with_memory_tests: {
          base: 'Chrome',
          flags: ['--enable-precise-memory-info']
      }
  },
  </code></pre>
  
  <p>Does anyone know why this may be? The window object is available since I can run other methods on it. Maybe I need another flag to enable this experimental feature?
  <a href="https://developer.mozilla.org/en-US/docs/Web/API/Window/performance" rel="noreferrer">https://developer.mozilla.org/en-US/docs/Web/API/Window/performance</a></p>