title: A way to view memory allocation in Xcode / lldb
body: <p>I have a simple program and set a breakpoint to see how to monitor memory allocation within a debugging interface (instead of, for example, with valgrind):</p>
  
  <p><a href="https://i.stack.imgur.com/QCnZo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/QCnZo.png" alt="enter image description here"></a></p>
  
  <p>The above program should allocate a lot of memory. It seems like the "Memory" icon on the left is unrelated to dynamic memory allocation (perhaps it's related to the amount of memory Xcode itself is using). Is there a command to see how much memory has been allocated within <code>lldb</code>, for example, similar to <code>(gdb) call malloc_stats()</code>? I know there is the Instruments application (which I've used), but I'm more interested in being able to step through the total memory usage while debugging it. Or, is there some GUI command/panel that will show this?</p>