module Spawncamp::Stats

Public Instance Methods

get_current_process() click to toggle source
# File lib/spawncamp/stats.rb, line 9
def get_current_process
        pid = Process.pid
        puts pid
end
get_running_processes() click to toggle source
# File lib/spawncamp/stats.rb, line 5
def get_running_processes
        Sys::ProcTable.ps.select{ |pe| pe.ppid == $$ }
end