overall_request_times 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84a14eeb5acf97238ec3331d3f84dc2c5e90794c
|
4
|
+
data.tar.gz: ba8ce98404abca577b881174d8df636e94f2e65b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34cecd41d8d596dbbb2531091177235ca6af1bf62e5c05d9765773c94372eaa2d8cc283973007d339b56ceee8baa8c0f449564154a02f0ccf780db3439a74b12
|
7
|
+
data.tar.gz: 10d4a9d19188a6834c577648d95dff2d50ce7cce6bb0b76d422a1436c6ed9fc3dcdd95c0b8c163d3047b775cfc60742ad19c5b0955e5d33d3e0a50f531b5fbb9
|
@@ -46,6 +46,14 @@ module OverallRequestTimes
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
def totals_and_counts
|
50
|
+
@mutex.synchronize do
|
51
|
+
@registry.each_with_object({}) do |(remote_app_name, timer), acc|
|
52
|
+
acc[remote_app_name] = {total: timer.total, call_count: timer.call_count}
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
49
57
|
def bm(remote_app_name, &block)
|
50
58
|
start(remote_app_name)
|
51
59
|
begin
|