Created
October 11, 2011 11:24
-
-
Save JakubOboza/1277857 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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