unicorn-instruments 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/unicorn-instruments.rb +3 -3
- metadata +1 -1
data/unicorn-instruments.rb
CHANGED
@@ -16,12 +16,12 @@ class Unicorn::HttpServer
|
|
16
16
|
nr = 0
|
17
17
|
worker.tick = Time.now.to_i
|
18
18
|
while sock = ready.shift
|
19
|
-
start_process = Time.now
|
19
|
+
start_process = Time.now
|
20
20
|
if client = sock.kgio_tryaccept
|
21
21
|
process_client(client)
|
22
22
|
nr += 1
|
23
|
-
elapsed = (Time.now.
|
24
|
-
$stdout.puts("measure
|
23
|
+
elapsed = (Time.now.to_f - start_process.to_f) * 1000
|
24
|
+
$stdout.puts("measure.unicorn.process=#{elapsed.round}ms")
|
25
25
|
worker.tick = Time.now.to_i
|
26
26
|
end
|
27
27
|
break if nr < 0
|