Sha256: 63c7e964744e5488b872a8ee44d8e1f21ec54f83bd2cfb4e9a2b12b012782de7

Contents?: true

Size: 364 Bytes

Versions: 10

Compression:

Stored size: 364 Bytes

Contents

RSpec.configure do |config|
  # TODO: move this to foobara-spec-helpers project
  config.around(:each, :profile) do |example|
    require "ruby-prof"
    RubyProf.start
    example.run
    result = RubyProf.stop

    printer = RubyProf::GraphHtmlPrinter.new(result)
    File.open("tmp/profile-out.html", "w+") do |file|
      printer.print(file)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
foobara-empty-ruby-project-generator-0.0.10 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.9 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.8 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.7 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.6 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.5 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.4 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.3 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.2 templates/spec/support/rubyprof.rb
foobara-empty-ruby-project-generator-0.0.1 templates/spec/support/rubyprof.rb