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_lsof ⇒ Object
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_count ⇒ Object
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 |
.lsof ⇒ Object
33 34 35 36 |
# File 'lib/ruote/util/look.rb', line 33 def self.lsof `lsof -p #{$$}` end |