Module: Ruote::Look

Defined in:
lib/ruote/util/look.rb

Overview

Some methods for looking at system/runtime things.

Class Method Summary collapse

Class Method Details

.dump_lsofObject


38
39
40
41
42
43
44
45
46
# File 'lib/ruote/util/look.rb', line 38

def self.dump_lsof

  result = lsof

  puts '= lsof =' + '=' * 71
  puts result
  puts result.split("\n").size
  puts '=' * 80
end

.dump_lsof_countObject


48
49
50
51
52
53
# File 'lib/ruote/util/look.rb', line 48

def self.dump_lsof_count

  puts '= lsof count =' + '=' * 65
  puts lsof.split("\n").size
  puts '=' * 80
end

.lsofObject


33
34
35
36
# File 'lib/ruote/util/look.rb', line 33

def self.lsof

  `lsof -p #{$$}`
end