aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/profiler
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-04-18 19:03:25 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-04-18 19:03:25 +0000
commitbd441bb06653c1696ccdce486add6e2d0b8e93d3 (patch)
treefdb3e3956aac95ab65702440aaf7418d473e05ba /railties/bin/profiler
parent9aaea3ba73005a69873c6a889bce5f5a54a230a1 (diff)
downloadrails-bd441bb06653c1696ccdce486add6e2d0b8e93d3.tar.gz
rails-bd441bb06653c1696ccdce486add6e2d0b8e93d3.tar.bz2
rails-bd441bb06653c1696ccdce486add6e2d0b8e93d3.zip
Updated to take compilation out of the measurements
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1214 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/bin/profiler')
-rw-r--r--railties/bin/profiler3
1 files changed, 3 insertions, 0 deletions
diff --git a/railties/bin/profiler b/railties/bin/profiler
index aca84055c2..f0f14a2b99 100644
--- a/railties/bin/profiler
+++ b/railties/bin/profiler
@@ -8,6 +8,9 @@ end
require File.dirname(__FILE__) + '/../config/environment'
require "profiler"
+# Don't include compilation in the profile
+eval(ARGV.first)
+
Profiler__::start_profile
(ARGV[1] || 1).to_i.times { eval(ARGV.first) }
Profiler__::stop_profile