rack_timer 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +49 -25
  2. data/lib/rack_timer/version.rb +1 -1
  3. metadata +3 -3
data/README CHANGED
@@ -11,34 +11,58 @@ If you are tracking request queuing time via New Relic's suggested header (HTTP_
11
11
 
12
12
  Example output of Rack Timer with RACK_TIMER_LOG_THRESHOLD = 0.0:
13
13
 
14
- Rack Timer -- Queuing time: 1203 microseconds
15
- Rack Timer -- Ngin::MiddlewareStart: 0.02288818359375 ms
16
- Rack Timer -- Rack::Lock: 0.0150203704833984 ms
17
- Rack Timer -- ActiveSupport::Cache::Strategy::LocalCache: 0.0181198120117188 ms
18
- Rack Timer -- Rack::Runtime: 0.0121593475341797 ms
19
-
20
-
21
- Started GET "/page/show/358660-history" for 75.146.189.233 at Mon Mar 05 13:37:30 -0800 2012
22
- Rack Timer -- Rails::Rack::Logger: 0.110149383544922 ms
23
- Rack Timer -- ActionDispatch::ShowExceptions: 0.00905990600585938 ms
24
- Rack Timer -- ActionDispatch::RemoteIp: 0.0131130218505859 ms
25
- Rack Timer -- Rack::Sendfile: 0.00691413879394531 ms
26
- Rack Timer -- ActionDispatch::Callbacks: 0.0200271606445312 ms
27
- Rack Timer -- ActiveRecord::ConnectionAdapters::ConnectionManagement: 0.00691413879394531 ms
28
- Rack Timer -- ActiveRecord::QueryCache: 0.0360012054443359 ms
29
- Rack Timer -- ActionDispatch::Cookies: 0.00691413879394531 ms
30
- Rack Timer -- ActionDispatch::Session::CookieStore: 0.0231266021728516 ms
31
- Rack Timer -- ActionDispatch::Flash: 1.24096870422363 ms
32
- Rack Timer -- ActionDispatch::ParamsParser: 0.0169277191162109 ms
33
- Rack Timer -- Rack::MethodOverride: 0.00786781311035156 ms
34
- Rack Timer -- ActionDispatch::Head: 0.00810623168945312 ms
35
- Rack Timer -- ActionDispatch::BestStandardsSupport: 0.00691413879394531 ms
36
- Rack Timer -- Warden::Manager: 0.0591278076171875 ms
37
- Rack Timer -- NewRelic::Rack::BrowserMonitoring: 0.00715255737304688 ms
14
+ Rack Timer -- Queuing time: 1723 microseconds
15
+ Rack Timer (incoming) -- Rack::Lock: 0.019073486328125 ms
16
+ Rack Timer (incoming) -- ActiveSupport::Cache::Strategy::LocalCache: 0.0209808349609375 ms
17
+ Rack Timer (incoming) -- Rack::Runtime: 0.0140666961669922 ms
18
+
19
+
20
+ Started GET "/page/show/298883-home" for 75.146.189.233 at Tue Mar 13 05:55:20 -0700 2012
21
+ Rack Timer (incoming) -- Rails::Rack::Logger: 0.123023986816406 ms
22
+ Rack Timer (incoming) -- ActionDispatch::ShowExceptions: 0.00905990600585938 ms
23
+ Rack Timer (incoming) -- ActionDispatch::RemoteIp: 0.0140666961669922 ms
24
+ Rack Timer (incoming) -- Rack::Sendfile: 0.0119209289550781 ms
25
+ Rack Timer (incoming) -- ActionDispatch::Callbacks: 0.0219345092773438 ms
26
+ Rack Timer (incoming) -- ActiveRecord::ConnectionAdapters::ConnectionManagement: 0.00905990600585938 ms
27
+ Rack Timer (incoming) -- ActiveRecord::QueryCache: 0.0360012054443359 ms
28
+ Rack Timer (incoming) -- ActionDispatch::Cookies: 0.00905990600585938 ms
29
+ Rack Timer (incoming) -- ActionDispatch::Session::CookieStore: 0.0269412994384766 ms
30
+ Rack Timer (incoming) -- ActionDispatch::Flash: 0.581979751586914 ms
31
+ Rack Timer (incoming) -- ActionDispatch::ParamsParser: 0.019073486328125 ms
32
+ Rack Timer (incoming) -- Rack::MethodOverride: 0.0100135803222656 ms
33
+ Rack Timer (incoming) -- ActionDispatch::Head: 0.00905990600585938 ms
34
+ Rack Timer (incoming) -- ActionDispatch::BestStandardsSupport: 0.00786781311035156 ms
35
+ Rack Timer (incoming) -- Warden::Manager: 0.0669956207275391 ms
36
+ Rack Timer (incoming) -- NewRelic::Rack::BrowserMonitoring: 0.00882148742675781 ms
37
+ Rack Timer (incoming) -- OmniAuth::Strategies::Facebook: 0.0569820404052734 ms
38
38
  Processing by PageController#show as HTML
39
+ Parameters: {"id"=>"298883-home"}
40
+ Completed 200 OK in 1552ms (Views: 648.2ms | ActiveRecord: 446.4ms)
41
+ Rack Timer (Application Action) -- ActionDispatch::Routing::RouteSet: 1575.03509521484 ms
42
+ Rack Timer (outgoing) -- OmniAuth::Strategies::Facebook: 0.0109672546386719 ms
43
+ Rack Timer (outgoing) -- NewRelic::Rack::BrowserMonitoring: 0.0259876251220703 ms
44
+ Rack Timer (outgoing) -- Warden::Manager: 0.0150203704833984 ms
45
+ Rack Timer (outgoing) -- ActionDispatch::BestStandardsSupport: 0.0100135803222656 ms
46
+ Rack Timer (outgoing) -- ActionDispatch::Head: 0.00905990600585938 ms
47
+ Rack Timer (outgoing) -- Rack::MethodOverride: 0.00905990600585938 ms
48
+ Rack Timer (outgoing) -- ActionDispatch::ParamsParser: 0.0100135803222656 ms
49
+ Rack Timer (outgoing) -- ActionDispatch::Flash: 0.0138282775878906 ms
50
+ Rack Timer (outgoing) -- ActionDispatch::Session::CookieStore: 0.223159790039062 ms
51
+ Rack Timer (outgoing) -- ActionDispatch::Cookies: 0.0920295715332031 ms
52
+ Rack Timer (outgoing) -- ActiveRecord::QueryCache: 0.0140666961669922 ms
53
+ Rack Timer (outgoing) -- ActiveRecord::ConnectionAdapters::ConnectionManagement: 0.113010406494141 ms
54
+ Rack Timer (outgoing) -- ActionDispatch::Callbacks: 0.0121593475341797 ms
55
+ Rack Timer (outgoing) -- Rack::Sendfile: 0.0138282775878906 ms
56
+ Rack Timer (outgoing) -- ActionDispatch::RemoteIp: 0.00786781311035156 ms
57
+ Rack Timer (outgoing) -- ActionDispatch::ShowExceptions: 0.0131130218505859 ms
58
+ Rack Timer (outgoing) -- Rails::Rack::Logger: 1.23691558837891 ms
59
+ Rack Timer (outgoing) -- Rack::Runtime: 0.0350475311279297 ms
60
+ Rack Timer (outgoing) -- ActiveSupport::Cache::Strategy::LocalCache: 0.0121593475341797 ms
61
+ Rack Timer (outgoing) -- Rack::Lock: 0.0231266021728516 ms
62
+
39
63
 
40
64
 
41
- The Queuing time shows that with this request, 1203 microseconds (1.2 milliseconds) elapsed from the time Nginx set the HTTP_X_REQUEST_START header and the start of the first piece of middleware. Each subsequent Rack Timer output line shows how long each piece of middleware took to execute in milliseconds. Turns out that all of the standard Rails middleware classes are generally fast, which is a good thing!
65
+ The Queuing time shows that with this request, 1203 microseconds (1.2 milliseconds) elapsed from the time Nginx set the HTTP_X_REQUEST_START header and the start of the first piece of middleware. Each subsequent Rack Timer output line shows how long each piece of middleware took to execute in milliseconds. The Rack Timer (incoming) timestamps show elapsed time of the middleware class prior to executing the application's action. The Rack Timer (outgoing) timestamps show elapsed time of the middleware class after the application's action. The Rack Timer (Application Action) timestamp shows the elapsed time of the application's action and the final piece of middleware, Rails routing. Turns out that all of the standard Rails middleware classes are generally fast, which is a good thing!
42
66
 
43
67
 
44
68
 
@@ -1,3 +1,3 @@
1
1
  module RackTimer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack_timer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - lukeludwig