Module: Spawncamp::Stats

Defined in:
lib/spawncamp/stats.rb

Instance Method Summary collapse

Instance Method Details

#get_current_processObject



9
10
11
12
# File 'lib/spawncamp/stats.rb', line 9

def get_current_process
	pid = Process.pid
	puts pid
end

#get_running_processesObject



5
6
7
# File 'lib/spawncamp/stats.rb', line 5

def get_running_processes
	Sys::ProcTable.ps.select{ |pe| pe.ppid == $$ }
end