Skip to content

Instantly share code, notes, and snippets.

@JakubOboza
Created October 11, 2011 11:24
Show Gist options
  • Save JakubOboza/1277857 to your computer and use it in GitHub Desktop.
Save JakubOboza/1277857 to your computer and use it in GitHub Desktop.
before_filter :log_ram # or use after_filter
def log_ram
logger.warn 'RAM USAGE: ' + `pmap #{Process.pid} | tail -1`[10,40].strip
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment