Joined December 2012
·
Posted to
Measuring memory usage in Ruby
over 1 year
ago
Not working at all.
➜ ~ puts ps -o rss= -p #{$$}
.to_i
ps: option requires an argument -- p
usage: ps [-AaCcEefhjlMmrSTvwXx] [-O fmt | -o fmt] [-G gid[,gid...]]
[-g grp[,grp...]] [-u [uid,uid...]]
[-p pid[,pid...]] [-t tty[,tty...]] [-U user[,user...]]
ps [-L]
Achievements
88 Karma
0 Total ProTip Views
Altruist
Increase developer well-being by sharing at least 20 open source projects
Cub
Have at least one original jQuery or Prototype open source repo
Bear
Have at least one original repo where Objective-C is the dominant language
Mongoose 3
Have at least three original repos where Ruby is the dominant language
Charity
Fork and commit to someone's open source project in need
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Nephila Komaci 3
Have at least three original repos where PHP is the dominant language
Walrus
The walrus is no stranger to variety. Use at least 4 different languages throughout all your repos
Mongoose
Have at least one original repo where Ruby is the dominant language
You are kidding. It cannot be happening. sarkasm