instance method
show_profile_results
Ruby on Rails 2.2.3
Since v2.2.3 Last seen in v2.2.3Signature
show_profile_results(results)
No documentation comment.
Parameters
-
resultsreq
Source
# File actionpack/lib/action_controller/request_profiler.rb, line 157
def show_profile_results(results)
File.open "#{RAILS_ROOT}/tmp/profile-graph.html", 'w' do |file|
RubyProf::GraphHtmlPrinter.new(results).print(file)
`#{options[:open] % file.path}` if options[:open]
end
File.open "#{RAILS_ROOT}/tmp/profile-flat.txt", 'w' do |file|
RubyProf::FlatPrinter.new(results).print(file)
`#{options[:open] % file.path}` if options[:open]
end
end
Defined in actionpack/lib/action_controller/request_profiler.rb line 157
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestProfiler