Skip to content

Instantly share code, notes, and snippets.

@hidenba
Created January 20, 2013 03:15
Show Gist options
  • Save hidenba/4576468 to your computer and use it in GitHub Desktop.
Save hidenba/4576468 to your computer and use it in GitHub Desktop.
OSXでのメモリステータス
ruby -e 'puts `vm_stat`.gsub!(/([0-9]*)\.$/){ "#{($1.to_i * 4096 / 1000000.0).round(2)}M" }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment