aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/examples
diff options
context:
space:
mode:
authorYehuda Katz <wycats@gmail.com>2009-08-09 07:14:24 -0300
committerYehuda Katz <wycats@gmail.com>2009-08-11 15:03:52 -0700
commit04d4537cd40d0415d15af4395213632735c8683f (patch)
tree7a03845cceb50e14f75e83658e6651266975ff74 /actionpack/examples
parent0a558b36eb3858ceeb926ada1388b0bd41da11f7 (diff)
downloadrails-04d4537cd40d0415d15af4395213632735c8683f.tar.gz
rails-04d4537cd40d0415d15af4395213632735c8683f.tar.bz2
rails-04d4537cd40d0415d15af4395213632735c8683f.zip
This change causes some failing tests, but it should be possible to make them pass with minimal performance impact.
Diffstat (limited to 'actionpack/examples')
-rw-r--r--actionpack/examples/minimal.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/actionpack/examples/minimal.rb b/actionpack/examples/minimal.rb
index a9015da053..b3733b487b 100644
--- a/actionpack/examples/minimal.rb
+++ b/actionpack/examples/minimal.rb
@@ -91,6 +91,8 @@ class HttpPostController < ActionController::Metal
end
end
+ActionController::Base.use_accept_header = false
+
unless ENV["PROFILE"]
Runner.run(BasePostController.action(:overhead), N, 'overhead', false)
Runner.run(BasePostController.action(:index), N, 'index', false)
@@ -108,10 +110,10 @@ unless ENV["PROFILE"]
Runner.run(BasePostController.action(:show_template), N, 'template')
end
else
- Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
+ Runner.run(BasePostController.action(ENV["PROFILE"].to_sym), N, ENV["PROFILE"])
require "ruby-prof"
RubyProf.start
- Runner.run(BasePostController.action(:many_partials), N, 'many_partials')
+ Runner.run(BasePostController.action(ENV["PROFILE"].to_sym), N, ENV["PROFILE"])
result = RubyProf.stop
printer = RubyProf::CallStackPrinter.new(result)
printer.print(File.open("output.html", "w"))