rails_performance 0.0.1.5 → 0.0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rails_performance/middleware.rb +9 -9
- data/lib/rails_performance/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a1fe4e6d5f14c9d084580147243e3276892bbebdbc6ac301949db7b29295aee
|
4
|
+
data.tar.gz: c54c0c66a44cd8a5acee8de72c7455c0190e926983f28142a078f407249a6b5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3eaaee2a6d6d31c2552c0688d7a4ae14643fee8632761f84452416abf9afe703eda7dd76f3c758421fc0bd3b43d579e6d4abfc9b5a38d902ec5d0ba320a459f
|
7
|
+
data.tar.gz: e1a68247409672778b646d6d9b58b96f697fbb7f01c8a21d59f91bfa24d41a21f2c52d2b5d86c5448181e3e2c6810ab8ce0d349f1d5fd06c358c0261182fa6ad
|
@@ -10,15 +10,15 @@ module RailsPerformance
|
|
10
10
|
if record = Thread.current["RP_request_info"]
|
11
11
|
record[:status] ||= @status
|
12
12
|
|
13
|
-
rand(100).times do |e|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
end
|
13
|
+
# rand(100).times do |e|
|
14
|
+
# finished = Time.now - rand(2000).minutes
|
15
|
+
# record[:datetime] = finished.strftime(RailsPerformance::MetricsCollector::FORMAT)
|
16
|
+
# record[:datetimei] = finished.to_i
|
17
|
+
# record[:duration] = 50 + rand(100) + rand(50.0)
|
18
|
+
# record[:db_runtime] = rand(50.0)
|
19
|
+
# record[:view_runtime] = rand(50.0)
|
20
|
+
# RP::Utils.log_in_redis(record)
|
21
|
+
# end
|
22
22
|
|
23
23
|
RP::Utils.log_in_redis(record)
|
24
24
|
|