Skip to content

Instantly share code, notes, and snippets.

@mtkd
Created August 9, 2010 20:26
Show Gist options
  • Save mtkd/516046 to your computer and use it in GitHub Desktop.
Save mtkd/516046 to your computer and use it in GitHub Desktop.
Ruby to get process memory usage
`ps -o rss= -p #{$$}`.to_i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment