Sha256: 16e621a94d7a852c7aa5b4eef5c52c7b42c263cb7967b6c1dc22484a91b6a819

Contents?: true

Size: 746 Bytes

Versions: 299

Compression:

Stored size: 746 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

299 entries across 299 versions & 5 rubygems

Version Path
haml-3.1.3 vendor/sass/vendor/fssm/profile/prof-cache.rb
haml-3.2.0.alpha.8 vendor/sass/vendor/fssm/profile/prof-cache.rb
sass-3.1.4 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.11 vendor/fssm/profile/prof-cache.rb
sass-3.1.3 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.9 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.8 vendor/fssm/profile/prof-cache.rb
haml-3.2.0.alpha.5 vendor/sass/vendor/fssm/profile/prof-cache.rb
haml-3.2.0.alpha.4 vendor/sass/vendor/fssm/profile/prof-cache.rb
haml-3.1.2 vendor/sass/vendor/fssm/profile/prof-cache.rb
sass-3.1.2 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.7 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.6 vendor/fssm/profile/prof-cache.rb
radiant-1.0.0.rc1 vendor/plugins/haml/vendor/fssm/profile/prof-cache.rb
haml-3.2.0.alpha.3 vendor/sass/vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.4 vendor/fssm/profile/prof-cache.rb
sass-3.2.0.alpha.3 vendor/fssm/profile/prof-cache.rb
sass-3.1.1 vendor/fssm/profile/prof-cache.rb
haml-3.2.0.alpha.2 vendor/sass/vendor/fssm/profile/prof-cache.rb
haml-3.1.1 vendor/sass/vendor/fssm/profile/prof-cache.rb