Macos – How to inspect memory map on OSX

macos

The equivalent command for linux is (for the bash process)

cat /proc/$$/maps

But for my mac, I get this output

cat: /proc/501/maps: No such file or directory

How to inspect memory map on OSX?

Best Answer

You can use the following commands to get the memory on OS X

  1. /usr/bin/vm_stat
  2. ls -l /var/vm

Retrieve RAM info on a Mac

Related Question