Patches: Browse | Submit New | Admin
Here's a hack at it: [the current .rss seems to be too low?] stats = File.read "/proc/#{Process.pid}/status" stats =~ /RSS:\s+(\d+)/i # attempt to parse it return $1
Add A Comment:
Date: 2009-03-07 00:37 Sender: Roger Pack I would probably name it vmrss or something--and maybe even add the other things that are in that file. -=r
Date: 2009-03-02 03:51 Sender: Daniel Berger Well, that's a bit of a dilemma. Which do I include? Do I create a separate field name? And for what other fields should I do that? I'll have to think about it. Dan
Date: 2009-02-23 16:18 Sender: Roger Pack appears to be the units [?] http://bruynooghe.blogspot.com/2009/01/resident-set-size- rss-from-procpidstat.html
Date: 2009-02-22 14:31 Sender: Daniel Berger You'll have to tell me what the difference is between that value in /proc/<pid>/status and /proc/<pid>/stat. Dan