Skip to content

Instantly share code, notes, and snippets.

@ishida
Last active December 17, 2015 20:49
Show Gist options
  • Save ishida/5670785 to your computer and use it in GitHub Desktop.
Save ishida/5670785 to your computer and use it in GitHub Desktop.
get memory usage @mac
`ps alx | grep \[r\]uby | awk '{printf ("%d", $8)}'`.to_i
`ps -o rss= -p #{Process.pid}`.to_i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment