Module: Kernel
- Defined in:
- lib/mongrel/debug.rb
Instance Method Summary collapse
Instance Method Details
#log_open_files ⇒ Object
111 112 113 114 115 116 117 118 |
# File 'lib/mongrel/debug.rb', line 111 def log_open_files open_counts = {} $open_files.each do |f,args| open_counts[args] ||= 0 open_counts[args] += 1 end MongrelDbg::trace(:files, open_counts.to_yaml) end |
#open(*arg, &blk) ⇒ Object
106 107 108 109 |
# File 'lib/mongrel/debug.rb', line 106 def open(*arg, &blk) $open_files[self] = arg[0] orig_open(*arg,&blk) end |
#orig_open ⇒ Object
104 |
# File 'lib/mongrel/debug.rb', line 104 alias_method :orig_open, :open |