Class: Ultragrep::RequestPerformancePrinter
- Inherits:
-
RequestPrinter
- Object
- RequestPrinter
- Ultragrep::RequestPerformancePrinter
- Defined in:
- lib/ultragrep.rb
Instance Method Summary collapse
Methods inherited from RequestPrinter
#add_request, #dump_buffer, #finish, #initialize, #run, #set_done, #set_read_up_to
Constructor Details
This class inherits a constructor from Ultragrep::RequestPrinter
Instance Method Details
#format_request(parsed_up_to, req) ⇒ Object
81 82 83 84 85 86 87 |
# File 'lib/ultragrep.rb', line 81 def format_request(parsed_up_to, req) text = req.join return unless text =~ /.*Processing ([^ ]+) .*Completed in (\d+)ms/m action = $1 time = $2 "#{parsed_up_to}\t#{action}\t#{time}\n" end |