Last active
August 29, 2015 14:06
-
-
Save rlei/cf29e957f847cb521c6f to your computer and use it in GitHub Desktop.
View Google Chrome total RAM footprint on OS X (tested on 10.9.4)
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
top -l 1 -stats mem,command | grep Chrome | cut -d' ' -f1 | awk '/K/ { gsub(/K.*$/,""); sum+=$1} /M/ { gsub(/M.*$/,""); sum+=$1*1024} END {printf "%.2fM\n", sum/1024} ' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment