rack-allocation_stats 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/spec/rack/allocation_stats_spec.rb +4 -4
- metadata +102 -100
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a0b36969b445a5459be5b57b576864b2ae741fa2
|
4
|
+
data.tar.gz: 3457b2ae204c7c4f705579e10d09f96f152fd169
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e4cf3c9b759764b915245db5ef056206654d26a6351adb45a5e2bf941e2d31ecba9d4c051b99f8421e69838297569388f8f32299776462289f49a84ede318fc
|
7
|
+
data.tar.gz: b408730fbd13191ad4d753a7f698b5eecf7c3ad856fa1b97e0089f3d89d15aeed54f810434b0b6c227fc39e56cf3f92029fd2e0e4488a65cf59ceffff43a462c
|
@@ -35,7 +35,7 @@ describe Rack::AllocationStats do
|
|
35
35
|
_, _, body = Rack::AllocationStats.new(@app).call(@traced_request_env)
|
36
36
|
|
37
37
|
expected_body = [
|
38
|
-
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated
|
38
|
+
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 2 `String`\n",
|
39
39
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 1 `Array<String>`\n",
|
40
40
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 1 `Array<Fixnum,Hash,Array>`\n",
|
41
41
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 1 `Hash`\n",
|
@@ -54,7 +54,7 @@ describe Rack::AllocationStats do
|
|
54
54
|
_, _, body = Rack::AllocationStats.new(@app).call(request_env)
|
55
55
|
|
56
56
|
expected_body = [
|
57
|
-
"<PWD>/spec/hello_world_app.rb:#{@app.allocating_lines[1]} allocated
|
57
|
+
"<PWD>/spec/hello_world_app.rb:#{@app.allocating_lines[1]} allocated 2 `String`\n",
|
58
58
|
"<PWD>/spec/hello_world_app.rb:#{@app.allocating_lines[1]} allocated 1 `Array<String>`\n",
|
59
59
|
"<PWD>/spec/hello_world_app.rb:#{@app.allocating_lines[1]} allocated 1 `Array<Fixnum,Hash,Array>`\n",
|
60
60
|
"<PWD>/spec/hello_world_app.rb:#{@app.allocating_lines[1]} allocated 1 `Hash`\n",
|
@@ -73,7 +73,7 @@ describe Rack::AllocationStats do
|
|
73
73
|
_, _, body = Rack::AllocationStats.new(@app).call(request_env)
|
74
74
|
|
75
75
|
expected_body = [
|
76
|
-
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated
|
76
|
+
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 8 `String`\n",
|
77
77
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 4 `Array<String>`\n",
|
78
78
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 4 `Array<Fixnum,Hash,Array>`\n",
|
79
79
|
"#{HelloWorldApp::FULL_PATH}:#{@app.allocating_lines[1]} allocated 4 `Hash`\n",
|
@@ -109,7 +109,7 @@ describe Rack::AllocationStats do
|
|
109
109
|
psych_request_env = Rack::MockRequest.env_for("/", :params => "ras[trace]=true&ras[scope]=psych")
|
110
110
|
_, _, body = Rack::AllocationStats.new(yaml_app).call(psych_request_env)
|
111
111
|
|
112
|
-
expect(body.size).to eq
|
112
|
+
expect(body.size).to eq 42
|
113
113
|
end
|
114
114
|
|
115
115
|
it "returns HTML5 in response to an interactive request" do
|
metadata
CHANGED
@@ -1,148 +1,149 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-allocation_stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Rawlins
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: allocation_stats
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - '
|
17
|
+
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.1.3
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - '
|
24
|
+
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 0.1.3
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: yajl-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - "<"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - "<"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
55
|
-
description: Rack middleware for tracing object allocations in Ruby 2.1
|
54
|
+
version: '3'
|
55
|
+
description: Rack middleware for tracing object allocations in Ruby 2.1; aggregate
|
56
|
+
allocation information per Rack request; group, sort, and filter allocation information
|
56
57
|
email:
|
57
58
|
- sam.rawlins@gmail.com
|
58
59
|
executables: []
|
59
60
|
extensions: []
|
60
61
|
extra_rdoc_files: []
|
61
62
|
files:
|
62
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
63
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
64
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
65
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
66
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
67
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
68
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
69
|
-
- ./demo_rack_apps/Rails_3.2.15/app/
|
70
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
71
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
72
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
73
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
74
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
75
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
76
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
77
|
-
- ./demo_rack_apps/Rails_3.2.15/config/initializers/
|
78
|
-
- ./demo_rack_apps/Rails_3.2.15/config/initializers/
|
79
|
-
- ./demo_rack_apps/Rails_3.2.15/config/initializers/
|
80
|
-
- ./demo_rack_apps/Rails_3.2.15/config/initializers/
|
81
|
-
- ./demo_rack_apps/Rails_3.2.15/config/initializers/
|
82
|
-
- ./demo_rack_apps/Rails_3.2.15/config/
|
83
|
-
- ./demo_rack_apps/Rails_3.2.15/db/migrate/
|
84
|
-
- ./demo_rack_apps/Rails_3.2.15/db/migrate/
|
85
|
-
- ./demo_rack_apps/Rails_3.2.15/db/schema.rb
|
86
|
-
- ./demo_rack_apps/Rails_3.2.15/db/seeds.rb
|
87
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
88
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
89
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
90
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
91
|
-
- ./demo_rack_apps/Rails_3.2.15/test/unit/
|
92
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
93
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
94
|
-
- ./demo_rack_apps/Rails_3.2.15/test/
|
95
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
96
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
97
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
98
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
99
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
100
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
101
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
102
|
-
- ./demo_rack_apps/Rails_4.0.1/app/
|
103
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
104
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
105
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
106
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
107
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
108
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
109
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
110
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/filter_parameter_logging.rb
|
111
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/
|
112
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/
|
113
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/
|
114
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/
|
115
|
-
- ./demo_rack_apps/Rails_4.0.1/config/initializers/
|
116
|
-
- ./demo_rack_apps/Rails_4.0.1/config/
|
117
|
-
- ./demo_rack_apps/Rails_4.0.1/db/migrate/20131102201320_create_projects.rb
|
118
|
-
- ./demo_rack_apps/Rails_4.0.1/db/migrate/20131102201321_create_tasks.rb
|
119
|
-
- ./demo_rack_apps/Rails_4.0.1/db/schema.rb
|
120
|
-
- ./demo_rack_apps/Rails_4.0.1/db/seeds.rb
|
121
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
122
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
123
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
124
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
125
|
-
- ./demo_rack_apps/Rails_4.0.1/test/models/
|
126
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
127
|
-
- ./demo_rack_apps/Rails_4.0.1/test/
|
128
|
-
- ./lib/rack/allocation_stats
|
129
|
-
- ./lib/rack/allocation_stats/
|
130
|
-
- ./lib/rack/allocation_stats/
|
131
|
-
- ./lib/rack/allocation_stats/formatters/
|
132
|
-
- ./lib/rack/allocation_stats/formatters/
|
133
|
-
- ./lib/rack/allocation_stats/formatters/
|
134
|
-
- ./lib/rack/allocation_stats/
|
135
|
-
- ./lib/rack/allocation_stats/middleware.rb
|
136
|
-
- ./lib/rack/allocation_stats.rb
|
137
|
-
- ./spec/
|
138
|
-
- ./spec/
|
139
|
-
- ./spec/
|
140
|
-
- ./spec/sinatra_app.rb
|
141
|
-
- ./spec/
|
142
|
-
- ./spec/
|
143
|
-
- ./spec/
|
144
|
-
- ./spec/
|
145
|
-
homepage:
|
63
|
+
- "./demo_rack_apps/Rails_3.2.15/app/controllers/application_controller.rb"
|
64
|
+
- "./demo_rack_apps/Rails_3.2.15/app/controllers/projects_controller.rb"
|
65
|
+
- "./demo_rack_apps/Rails_3.2.15/app/controllers/tasks_controller.rb"
|
66
|
+
- "./demo_rack_apps/Rails_3.2.15/app/helpers/application_helper.rb"
|
67
|
+
- "./demo_rack_apps/Rails_3.2.15/app/helpers/projects_helper.rb"
|
68
|
+
- "./demo_rack_apps/Rails_3.2.15/app/helpers/tasks_helper.rb"
|
69
|
+
- "./demo_rack_apps/Rails_3.2.15/app/models/project.rb"
|
70
|
+
- "./demo_rack_apps/Rails_3.2.15/app/models/task.rb"
|
71
|
+
- "./demo_rack_apps/Rails_3.2.15/config/application.rb"
|
72
|
+
- "./demo_rack_apps/Rails_3.2.15/config/boot.rb"
|
73
|
+
- "./demo_rack_apps/Rails_3.2.15/config/environment.rb"
|
74
|
+
- "./demo_rack_apps/Rails_3.2.15/config/environments/development.rb"
|
75
|
+
- "./demo_rack_apps/Rails_3.2.15/config/environments/production.rb"
|
76
|
+
- "./demo_rack_apps/Rails_3.2.15/config/environments/test.rb"
|
77
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/backtrace_silencers.rb"
|
78
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/inflections.rb"
|
79
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/mime_types.rb"
|
80
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/secret_token.rb"
|
81
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/session_store.rb"
|
82
|
+
- "./demo_rack_apps/Rails_3.2.15/config/initializers/wrap_parameters.rb"
|
83
|
+
- "./demo_rack_apps/Rails_3.2.15/config/routes.rb"
|
84
|
+
- "./demo_rack_apps/Rails_3.2.15/db/migrate/20131104031828_create_projects.rb"
|
85
|
+
- "./demo_rack_apps/Rails_3.2.15/db/migrate/20131104031829_create_tasks.rb"
|
86
|
+
- "./demo_rack_apps/Rails_3.2.15/db/schema.rb"
|
87
|
+
- "./demo_rack_apps/Rails_3.2.15/db/seeds.rb"
|
88
|
+
- "./demo_rack_apps/Rails_3.2.15/test/functional/projects_controller_test.rb"
|
89
|
+
- "./demo_rack_apps/Rails_3.2.15/test/functional/tasks_controller_test.rb"
|
90
|
+
- "./demo_rack_apps/Rails_3.2.15/test/performance/browsing_test.rb"
|
91
|
+
- "./demo_rack_apps/Rails_3.2.15/test/test_helper.rb"
|
92
|
+
- "./demo_rack_apps/Rails_3.2.15/test/unit/helpers/projects_helper_test.rb"
|
93
|
+
- "./demo_rack_apps/Rails_3.2.15/test/unit/helpers/tasks_helper_test.rb"
|
94
|
+
- "./demo_rack_apps/Rails_3.2.15/test/unit/project_test.rb"
|
95
|
+
- "./demo_rack_apps/Rails_3.2.15/test/unit/task_test.rb"
|
96
|
+
- "./demo_rack_apps/Rails_4.0.1/app/controllers/application_controller.rb"
|
97
|
+
- "./demo_rack_apps/Rails_4.0.1/app/controllers/projects_controller.rb"
|
98
|
+
- "./demo_rack_apps/Rails_4.0.1/app/controllers/tasks_controller.rb"
|
99
|
+
- "./demo_rack_apps/Rails_4.0.1/app/helpers/application_helper.rb"
|
100
|
+
- "./demo_rack_apps/Rails_4.0.1/app/helpers/projects_helper.rb"
|
101
|
+
- "./demo_rack_apps/Rails_4.0.1/app/helpers/tasks_helper.rb"
|
102
|
+
- "./demo_rack_apps/Rails_4.0.1/app/models/project.rb"
|
103
|
+
- "./demo_rack_apps/Rails_4.0.1/app/models/task.rb"
|
104
|
+
- "./demo_rack_apps/Rails_4.0.1/config/application.rb"
|
105
|
+
- "./demo_rack_apps/Rails_4.0.1/config/boot.rb"
|
106
|
+
- "./demo_rack_apps/Rails_4.0.1/config/environment.rb"
|
107
|
+
- "./demo_rack_apps/Rails_4.0.1/config/environments/development.rb"
|
108
|
+
- "./demo_rack_apps/Rails_4.0.1/config/environments/production.rb"
|
109
|
+
- "./demo_rack_apps/Rails_4.0.1/config/environments/test.rb"
|
110
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/backtrace_silencers.rb"
|
111
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/filter_parameter_logging.rb"
|
112
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/inflections.rb"
|
113
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/mime_types.rb"
|
114
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/secret_token.rb"
|
115
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/session_store.rb"
|
116
|
+
- "./demo_rack_apps/Rails_4.0.1/config/initializers/wrap_parameters.rb"
|
117
|
+
- "./demo_rack_apps/Rails_4.0.1/config/routes.rb"
|
118
|
+
- "./demo_rack_apps/Rails_4.0.1/db/migrate/20131102201320_create_projects.rb"
|
119
|
+
- "./demo_rack_apps/Rails_4.0.1/db/migrate/20131102201321_create_tasks.rb"
|
120
|
+
- "./demo_rack_apps/Rails_4.0.1/db/schema.rb"
|
121
|
+
- "./demo_rack_apps/Rails_4.0.1/db/seeds.rb"
|
122
|
+
- "./demo_rack_apps/Rails_4.0.1/test/controllers/projects_controller_test.rb"
|
123
|
+
- "./demo_rack_apps/Rails_4.0.1/test/controllers/tasks_controller_test.rb"
|
124
|
+
- "./demo_rack_apps/Rails_4.0.1/test/helpers/projects_helper_test.rb"
|
125
|
+
- "./demo_rack_apps/Rails_4.0.1/test/helpers/tasks_helper_test.rb"
|
126
|
+
- "./demo_rack_apps/Rails_4.0.1/test/models/project_test.rb"
|
127
|
+
- "./demo_rack_apps/Rails_4.0.1/test/models/task_test.rb"
|
128
|
+
- "./demo_rack_apps/Rails_4.0.1/test/test_helper.rb"
|
129
|
+
- "./lib/rack/allocation_stats.rb"
|
130
|
+
- "./lib/rack/allocation_stats/action.rb"
|
131
|
+
- "./lib/rack/allocation_stats/call_app_directly.rb"
|
132
|
+
- "./lib/rack/allocation_stats/formatters/base.rb"
|
133
|
+
- "./lib/rack/allocation_stats/formatters/html.rb"
|
134
|
+
- "./lib/rack/allocation_stats/formatters/json.rb"
|
135
|
+
- "./lib/rack/allocation_stats/formatters/text.rb"
|
136
|
+
- "./lib/rack/allocation_stats/middleware.rb"
|
137
|
+
- "./lib/rack/allocation_stats/tracer.rb"
|
138
|
+
- "./spec/factories.rb"
|
139
|
+
- "./spec/hello_world_app.rb"
|
140
|
+
- "./spec/rack/allocation_stats_spec.rb"
|
141
|
+
- "./spec/sinatra_app.rb"
|
142
|
+
- "./spec/sinatra_templates_app.rb"
|
143
|
+
- "./spec/spec_helper.rb"
|
144
|
+
- "./spec/yajl_app.rb"
|
145
|
+
- "./spec/yaml_app.rb"
|
146
|
+
homepage: https://github.com/srawlins/rack-allocation_stats
|
146
147
|
licenses:
|
147
148
|
- Apache v2
|
148
149
|
metadata: {}
|
@@ -152,18 +153,19 @@ require_paths:
|
|
152
153
|
- lib
|
153
154
|
required_ruby_version: !ruby/object:Gem::Requirement
|
154
155
|
requirements:
|
155
|
-
- -
|
156
|
+
- - ">"
|
156
157
|
- !ruby/object:Gem::Version
|
157
158
|
version: 2.0.99
|
158
159
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
159
160
|
requirements:
|
160
|
-
- -
|
161
|
+
- - ">="
|
161
162
|
- !ruby/object:Gem::Version
|
162
163
|
version: '0'
|
163
164
|
requirements: []
|
164
165
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.0.
|
166
|
+
rubygems_version: 2.2.0.rc.1
|
166
167
|
signing_key:
|
167
168
|
specification_version: 4
|
168
169
|
summary: Rack middleware for tracing object allocations in Ruby 2.1
|
169
170
|
test_files: []
|
171
|
+
has_rdoc:
|