ddollar-rack-profile 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rack/profile.rb +3 -1
- data/rack-profile.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.4.0
|
data/lib/rack/profile.rb
CHANGED
@@ -12,12 +12,14 @@ class Rack::Profile
|
|
12
12
|
|
13
13
|
def call(env)
|
14
14
|
RubyProf.start
|
15
|
-
app.call(env)
|
15
|
+
response = app.call(env)
|
16
16
|
results = RubyProf.stop
|
17
17
|
|
18
18
|
write_output results, :html, RubyProf::GraphHtmlPrinter
|
19
19
|
write_output results, :text, RubyProf::FlatPrinter
|
20
20
|
write_output results, :tree, RubyProf::CallTreePrinter
|
21
|
+
|
22
|
+
response
|
21
23
|
end
|
22
24
|
|
23
25
|
private ######################################################################
|
data/rack-profile.gemspec
CHANGED