# File lib/action_controller/request_profiler.rb, line 158 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