Displaying 2 results from an estimated 2 matches for "db_time".
Did you mean:
d_time
2006 May 05
0
summarize: A log analysis script
...time, reqs_per_sec = s.match(/Completed in (\S+?) \((\S+?) reqs\/sec\)/)[1..-1]
http_status, url = s.match(/\| (\d+) \w+ \[(.+?)\]$/)[1..-1]
render_time, render_perc = s =~ /200 OK/ ? s.match(/Rendering: (\S+?) \((\d+)/)[1..-1] : [ ''0.0--00'', ''0'' ]
db_time, db_perc = s =~ /DB: / ? s.match(/DB: (\S+) \((\d+)/)[1..-1] : [ ''0.0--00'', ''0'' ]
url = url[/\w(\/.*)/, 1] if not FULL_URL
puts sprintf("%15s %s | r %s %2s%% | db %s %2s%% | %s %4s r/s | %s %s",
ip, time, render_time, render_...
2007 Apr 23
0
request logging: around_filters can't see error responses!
Hello,
I want to emit a structured log entry (in YAML) for every request that
hits my Rails app. For example, an entry in this log would look
something like:
---
SYSTEM_TIME: 0.0166666666666667
USER_TIME: 0.0999999999999996
DB_TIME: 0.00247621536254883
REAL_TIME: 0.091976
STATUS_CODE: 500
SESSION_ID: 64ad46a8841c66bbf64e93335cedc50d
REQUEST_ID: 32d6a42f-da58-43e2-ab27-09d3e2a775cb
RESPONSE_BODY_SIZE: 7001
REMOTE_IP: 127.0.1.1
TIMESTAMP: 2007-04-23 12:05:41.555780 -07:00
USER_AGENT: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1...