Sha256: aaca8da8bc530798b953329fe6ef89e37ca079ac3880fa93d5c8a8111f43ee08
Contents?: true
Size: 326 Bytes
Versions: 16
Compression:
Stored size: 326 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
16 entries across 16 versions & 2 rubygems