Module: Kernel

Defined in:
lib/mongrel/debug.rb

Instance Method Summary collapse

Instance Method Details

#log_open_filesObject



124
125
126
127
128
129
130
131
# File 'lib/mongrel/debug.rb', line 124

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



119
120
121
122
# File 'lib/mongrel/debug.rb', line 119

def open(*arg, &blk)
  $open_files[self] = arg[0]
  orig_open(*arg,&blk)
end

#orig_openObject



117
# File 'lib/mongrel/debug.rb', line 117

alias_method :orig_open, :open