Retrieving the memory map of its own process in OS X 10.5/10.6

前端 未结 4 1713
陌清茗
陌清茗 2020-12-03 02:12

In Linux, the easiest way to look at a process\' memory map is looking at /proc/PID/maps, giving something like this:

08048000-08056000 r-xp 00000000         


        
4条回答
  •  Happy的楠姐
    2020-12-03 02:42

    GNUlib (http://www.gnu.org/software/gnulib/) contains a function for iterating over all the virtual memory segments in most OSes including MAC OS X. It's in vma-iter.c

提交回复
热议问题