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

Version Path
refinerycms-0.9.6.34 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.33 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.32 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.31 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.30 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.29 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.28 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.27 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.26 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.25 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.24 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.23 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.22 vendor/plugins/friendly_id/extras/prof.rb
refinerycms-0.9.6.21 vendor/plugins/friendly_id/extras/prof.rb