Skip to content

Instantly share code, notes, and snippets.

@harmdewit
Created March 18, 2015 14:47
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 harmdewit/3a49ea3d409cfa9d9a79 to your computer and use it in GitHub Desktop.
Save harmdewit/3a49ea3d409cfa9d9a79 to your computer and use it in GitHub Desktop.
ActionController::Base.helpers.number_to_human_size(`ps -o rss= -p #{Process.pid}`.to_i * 1024)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment