rails_performance 0.0.1.8 → 0.0.1.9
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/rails/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: 3a5f0e5036c6f4c06d9ff912d6c026d3fb935dfc69c0d877948ec84fe93937fa
|
4
|
+
data.tar.gz: 78c4b2c4dbfdc08f216b4187c1039bdf47d9603cf1088b57b70304f1fd3e3a97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84e4085cdcc3f560087a4930294d727289dd0c9c38cb7475afb33f5e7b5729c5142ba8b46f2e2426296f1b09ee6e285f629158b2bba4b527c31ad3adcd982426
|
7
|
+
data.tar.gz: abcbf22a10f4b03ff4b800b85c08c79de1c664b8bde79491e4e4d24ffe4d78f84005db5a2024e98412739dfc95fa6d7e1bbe57e78796cb24b6b1e9cfb422fafd
|
@@ -11,15 +11,15 @@ module RailsPerformance
|
|
11
11
|
if record = Thread.current["RP_request_info"]
|
12
12
|
record[:status] ||= @status
|
13
13
|
|
14
|
-
rand(500).times do |e|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
end
|
14
|
+
# rand(500).times do |e|
|
15
|
+
# finished = Time.now - rand(2000).minutes
|
16
|
+
# record[:datetime] = finished.strftime(RailsPerformance::FORMAT)
|
17
|
+
# record[:datetimei] = finished.to_i
|
18
|
+
# record[:duration] = 50 + rand(100) + rand(50.0) + rand(e)
|
19
|
+
# record[:db_runtime] = rand(50.0)
|
20
|
+
# record[:view_runtime] = rand(50.0)
|
21
|
+
# RP::Utils.log_in_redis(record)
|
22
|
+
# end
|
23
23
|
|
24
24
|
RP::Utils.log_in_redis(record)
|
25
25
|
|