vmmap & top命令解析内存
Is there any way to query the address space of a process on Mac?
On Windows, we use VirtualQuery, and on Linux, we parse /proc/self/maps (ugh).
The vmmap command-line utility will give you this information.
http://blog.csdn.net/ani_di/article/details/7889677
http://osxbook.com/book/bonus/ancient/whatismacosx/tools.html