Sha256: 0d85043ff6ccdb751cb468d9486aae6647a1259f16424f6e4e812d46f95195d3
Contents?: true
Size: 749 Bytes
Versions: 265
Compression:
Stored size: 749 Bytes
Contents
$:.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) require 'fssm' require 'rubygems' require 'ruby-prof' $test_path = FSSM::Pathname.new('..').expand_path $test_files = FSSM::Pathname.glob(File.join($test_path, '**', '*')) RubyProf.start RubyProf.pause cache = FSSM::Tree::Cache.new 5000.times do |num| iteration = "%-5d" % (num + 1) print "iteration #{iteration}" print '!' RubyProf.resume cache.unset($test_path) RubyProf.pause print '!' $test_files.each do |fn| print '.' RubyProf.resume cache.set(fn) RubyProf.pause end print "\n\n" end result = RubyProf.stop output = File.new('prof.html', 'w+') printer = RubyProf::GraphHtmlPrinter.new(result) printer.print(output, :min_percent => 1)
Version data entries
265 entries across 118 versions & 8 rubygems