Sha256: c98c7306bf2fa90238e80251142eedc39556b54a28c2d325b0d937b42ce6a91e
Contents?: true
Size: 387 Bytes
Versions: 7
Compression:
Stored size: 387 Bytes
Contents
if ENV['RUBY_PROF'].present? require 'ruby-prof' RubyProf.start at_exit do results = RubyProf.stop File.open "#{Rails.root}/tmp/profile-graph.html", 'w' do |file| RubyProf::GraphHtmlPrinter.new(results).print(file) end File.open "#{Rails.root}/tmp/profile-flat.txt", 'w' do |file| RubyProf::FlatPrinter.new(results).print(file) end end end
Version data entries
7 entries across 7 versions & 1 rubygems