top -l 1 | head -n 10 | grep PhysMem
vm_stat
or the following python
python check memory in mac
You must be logged in to post a comment.