protected Method

RequestProfiler.load_ruby_prof

There's no documentation for this item.

Source Code

# File action_controller/request_profiler.rb, line 138
def load_ruby_prof
  begin
    require 'ruby-prof'
    if mode = options[:measure]
      RubyProf.measure_mode = RubyProf.const_get(mode.upcase)
    end
  rescue LoadError
    abort '`gem install ruby-prof` to use the profiler'
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.