title: Using Kcachegrind to debug the command bin/console which is too slow
body: <p>I have lately many issues like:</p>
  <pre><code>PHP Fatal Error: Allowed Memory Size Exhausted
  </code></pre>
  <p>and the quick fix is usually removing the limit of memory using in php.ini something like:</p>
  <pre><code>memory_limit =-1
  </code></pre>
  <p>but I think the 256M that I have by default should be enough. This is why I have enabled the profiler and run a simple <code>bin/console</code>. It takes like 8 seconds to print something in the terminal, which is pretty annoying.</p>
  <p>The overview of this profiling file in a tool called Kcachegrind looks like this:
  <a href="https://i.stack.imgur.com/xS2Nt.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xS2Nt.png" alt="kcachegrind" /></a></p>
  <p>I am not an expert on Symfony console but 2 million calls look too much, right?</p>
  <p>Is there anything that you would test?</p>
  <p>OS: Linux Mint 20.2 Cinnamon</p>