Skip to content

Instantly share code, notes, and snippets.

@greinacker
Created February 23, 2013 00:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save greinacker/5017581 to your computer and use it in GitHub Desktop.
Save greinacker/5017581 to your computer and use it in GitHub Desktop.
ruby code for current process memory usage
`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