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