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

Version Path
baleen-0.1.1 poc/features/support/ruby_prof_cucumber.rb
baleen-0.1.0 poc/features/support/ruby_prof_cucumber.rb
baleen-0.0.12 poc/features/support/ruby_prof_cucumber.rb
baleen-0.0.11 poc/features/support/ruby_prof_cucumber.rb
baleen-0.0.10 poc/features/support/ruby_prof_cucumber.rb
baleen-0.0.9 poc/features/support/ruby_prof_cucumber.rb
baleen-0.0.2 poc/features/support/ruby_prof_cucumber.rb