Class: GitoriousMuninPlugins::MemoryGauge
- Inherits:
-
Object
- Object
- GitoriousMuninPlugins::MemoryGauge
- Defined in:
- lib/gitorious-munin-plugins/memory_gauge.rb
Instance Method Summary collapse
Instance Method Details
#by_pid(pidfile) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/gitorious-munin-plugins/memory_gauge.rb', line 3 def by_pid(pidfile) if pidfile.exist? pid = pidfile.read.chomp command = "ps -p #{pid} -o vsize | grep '[0-9]'" result = `#{command}` end end |