What is the Memory graph measuring?
What is the Memory graph measuring?
- Subject: What is the Memory graph measuring?
- From: Jens Alfke <email@hidden>
- Date: Sun, 23 Apr 2017 18:29:33 -0700
I’m running a command-line tool that exercises the library I’m developing. (It’s just using SQLite and some simple file I/O via C++ iostreams.) Xcode says it’s using over 90MB of memory, which is crazy; it should be around 5MB. If I expand the memory widget, it shows a histogram showing memory usage rising steeply and linearly as the process runs. Oh no!
But using Xcode’s lovely memory graph, I can’t find anywhere near that much allocated. Most of it is malloc blocks allocated by SQLite, but it’s only about 6MB. And the ‘heap’ command-line tool confirms that my malloc heaps only consume 6MB of memory.
And yet both Activity Monitor and ‘top’ agree that the process is using 90MB. What the heck are they measuring? I have no diagnostics turned on (stack logging, zombies, etc.) that might eat up memory. The memory debugging tools are very nice, but if I can’t trust what they’re telling me, they’re not useful.
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden