rack-perftools_profiler 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/README.rdoc +4 -5
- data/Rakefile +6 -6
- data/VERSION +1 -1
- data/test/rack-perftools-profiler_test.rb +1 -1
- metadata +9 -15
data/.gitignore
CHANGED
data/README.rdoc
CHANGED
@@ -73,14 +73,14 @@ Example:
|
|
73
73
|
curl http://localhost:8080/__stop__
|
74
74
|
curl http://localhost:8080/__data__
|
75
75
|
|
76
|
-
In this mode, all responses are normal. You must visit
|
77
|
-
then you can view the profiling data by visiting
|
76
|
+
In this mode, all responses are normal. You must visit \_\_stop\_\_ to complete profiling and
|
77
|
+
then you can view the profiling data by visiting \_\_data\_\_
|
78
78
|
|
79
79
|
== Profiling Data Options
|
80
80
|
|
81
81
|
In both simple and start/stop modes, you can add additional params to change how the data
|
82
82
|
is displayed. In simple mode, these params are just added to the URL being profiled. In
|
83
|
-
start/stop mode, they are added to the
|
83
|
+
start/stop mode, they are added to the \_\_data\_\_ URL
|
84
84
|
|
85
85
|
* printer - overrides the default_printer option (see above)
|
86
86
|
* ignore - a regular expression of the area of code to ignore
|
@@ -103,8 +103,7 @@ Rack::Profiler from rack-contrib.
|
|
103
103
|
* Add tests for it. This is important so I don't break it in a
|
104
104
|
future version unintentionally.
|
105
105
|
* Commit, do not mess with rakefile, version, or history.
|
106
|
-
(if you want to have your own version, that is fine but
|
107
|
-
bump version in a commit by itself I can ignore when I pull)
|
106
|
+
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
108
107
|
* Send me a pull request. Bonus points for topic branches.
|
109
108
|
|
110
109
|
== Copyright
|
data/Rakefile
CHANGED
@@ -10,12 +10,12 @@ begin
|
|
10
10
|
gem.email = 'ben@bbrinck.com'
|
11
11
|
gem.homepage = 'http://github.com/bhb/rack-perftools_profiler'
|
12
12
|
gem.authors = ['Ben Brinckerhoff']
|
13
|
-
gem.add_dependency 'perftools.rb', '~> 0.4
|
14
|
-
gem.add_dependency 'rack', '~> 1.0
|
15
|
-
gem.add_dependency('open4', '~> 1.0
|
16
|
-
gem.add_development_dependency 'rack', '~> 1.1
|
17
|
-
gem.add_development_dependency 'shoulda', '~> 2.10
|
18
|
-
gem.add_development_dependency 'mocha', '~> 0.9
|
13
|
+
gem.add_dependency 'perftools.rb', '~> 0.4'
|
14
|
+
gem.add_dependency 'rack', '~> 1.0'
|
15
|
+
gem.add_dependency('open4', '~> 1.0')
|
16
|
+
gem.add_development_dependency 'rack', '~> 1.1'
|
17
|
+
gem.add_development_dependency 'shoulda', '~> 2.10'
|
18
|
+
gem.add_development_dependency 'mocha', '~> 0.9'
|
19
19
|
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
20
20
|
end
|
21
21
|
Jeweler::GemcutterTasks.new
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.2
|
@@ -89,7 +89,7 @@ class RackPerftoolsProfilerTest < Test::Unit::TestCase
|
|
89
89
|
app.call(@data_env)
|
90
90
|
end
|
91
91
|
|
92
|
-
should 'pass all Lint checks with
|
92
|
+
should 'pass all Lint checks with gif printer' do
|
93
93
|
app = Rack::Lint.new(Rack::PerftoolsProfiler.with_profiling_off(@slow_app, :default_printer => 'gif'))
|
94
94
|
app.call(@root_request_env)
|
95
95
|
app.call(@profiled_request_env)
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 2
|
9
|
+
version: 0.0.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ben Brinckerhoff
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-07-23 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -27,8 +27,7 @@ dependencies:
|
|
27
27
|
segments:
|
28
28
|
- 0
|
29
29
|
- 4
|
30
|
-
|
31
|
-
version: 0.4.0
|
30
|
+
version: "0.4"
|
32
31
|
type: :runtime
|
33
32
|
version_requirements: *id001
|
34
33
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +40,7 @@ dependencies:
|
|
41
40
|
segments:
|
42
41
|
- 1
|
43
42
|
- 0
|
44
|
-
|
45
|
-
version: 1.0.0
|
43
|
+
version: "1.0"
|
46
44
|
type: :runtime
|
47
45
|
version_requirements: *id002
|
48
46
|
- !ruby/object:Gem::Dependency
|
@@ -55,8 +53,7 @@ dependencies:
|
|
55
53
|
segments:
|
56
54
|
- 1
|
57
55
|
- 0
|
58
|
-
|
59
|
-
version: 1.0.1
|
56
|
+
version: "1.0"
|
60
57
|
type: :runtime
|
61
58
|
version_requirements: *id003
|
62
59
|
- !ruby/object:Gem::Dependency
|
@@ -69,8 +66,7 @@ dependencies:
|
|
69
66
|
segments:
|
70
67
|
- 1
|
71
68
|
- 1
|
72
|
-
|
73
|
-
version: 1.1.0
|
69
|
+
version: "1.1"
|
74
70
|
type: :development
|
75
71
|
version_requirements: *id004
|
76
72
|
- !ruby/object:Gem::Dependency
|
@@ -83,8 +79,7 @@ dependencies:
|
|
83
79
|
segments:
|
84
80
|
- 2
|
85
81
|
- 10
|
86
|
-
|
87
|
-
version: 2.10.2
|
82
|
+
version: "2.10"
|
88
83
|
type: :development
|
89
84
|
version_requirements: *id005
|
90
85
|
- !ruby/object:Gem::Dependency
|
@@ -97,8 +92,7 @@ dependencies:
|
|
97
92
|
segments:
|
98
93
|
- 0
|
99
94
|
- 9
|
100
|
-
|
101
|
-
version: 0.9.8
|
95
|
+
version: "0.9"
|
102
96
|
type: :development
|
103
97
|
version_requirements: *id006
|
104
98
|
description: Middleware for profiling Rack-compatible apps using perftools.rb
|