175: def process(request, response)
176: MongrelDbg::trace(:threads, "#{Time.now} REQUEST #{request.params['PATH_INFO']}")
177: ObjectSpace.each_object do |obj|
178: begin
179: if obj.class == Mongrel::HttpServer
180: worker_list = obj.workers.list
181:
182: if worker_list.length > 0
183: keys = "-----\n\tKEYS:"
184: worker_list.each {|t| keys << "\n\t\t-- #{t}: #{t.keys.inspect}" }
185: end
186:
187: MongrelDbg::trace(:threads, "#{obj.host}:#{obj.port} -- THREADS: #{worker_list.length} #{keys}")
188: end
189: rescue Object
190:
191: end
192: end
193: end