aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin/profiler
diff options
context:
space:
mode:
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