aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/commands/performance
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-10-25 20:33:28 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-10-25 20:33:28 +0000
commitd69be7df6dd1d358b019a2b8fe2c7cd10050063e (patch)
treed4002c1351275451b464414a022a452a02e24788 /railties/lib/commands/performance
parent96557eb35b2f28df663f2df6de4288931ee6143a (diff)
downloadrails-d69be7df6dd1d358b019a2b8fe2c7cd10050063e.tar.gz
rails-d69be7df6dd1d358b019a2b8fe2c7cd10050063e.tar.bz2
rails-d69be7df6dd1d358b019a2b8fe2c7cd10050063e.zip
Request profiler
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8016 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands/performance')
-rwxr-xr-xrailties/lib/commands/performance/request.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/railties/lib/commands/performance/request.rb b/railties/lib/commands/performance/request.rb
new file mode 100755
index 0000000000..8e19c9d6ed
--- /dev/null
+++ b/railties/lib/commands/performance/request.rb
@@ -0,0 +1,7 @@
+#!/usr/bin/env ruby
+RAILS_DEFAULT_LOGGER = nil
+require 'config/environment'
+require 'application'
+require 'action_controller/request_profiler'
+
+ActionController::RequestProfiler.run(ARGV)