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):
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 lldb
, for example, similar to (gdb) call malloc_stats()
? 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?