Sha256: 6de05e7f8b6087671de4f42d26cfd8fb8da28b6548e2f90b9dd4d7431133bd6a
Contents?: true
Size: 511 Bytes
Versions: 33
Compression:
Stored size: 511 Bytes
Contents
$:.unshift File.expand_path("../lib", File.dirname(__FILE__)) $:.unshift File.expand_path(File.dirname(__FILE__)) $:.uniq! require "extras" require 'ruby-prof' # RubyProf.measure_mode = RubyProf::MEMORY GC.disable RubyProf.start 100.times do Post.find(slug = POSTS.rand) end result = RubyProf.stop GC.enable # printer = RubyProf::CallTreePrinter.new(result) printer = RubyProf::GraphPrinter.new(result) version = ActiveRecord::VERSION::STRING.gsub(".", "") printer.print(File.new("prof#{version}.txt", "w"))
Version data entries
33 entries across 33 versions & 2 rubygems