Sha256: 18e3a22e26f29d4059e78e20f596b40848e3b017ae32cd40ce2ad6388e922547
Contents?: true
Size: 327 Bytes
Versions: 14
Compression:
Stored size: 327 Bytes
Contents
#!/usr/bin/env ruby -KU require File.dirname(__FILE__) + '/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.print(File.new("prof.txt", "w"))
Version data entries
14 entries across 14 versions & 1 rubygems