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

Version Path
classiccms-0.7.5 vendor/bundle/gems/sass-3.1.15/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.5/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.4/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.5 vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.4 vendor/bundle/gems/sass-3.1.15/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.5/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.4/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.4 vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.3 vendor/bundle/gems/sass-3.1.15/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.4/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.5/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.3 vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-cache.rb
sadui-0.0.4 vendor/bundle/ruby/2.1.0/gems/fssm-0.2.10/profile/prof-cache.rb
sadui-0.0.4 vendor/bundle/ruby/2.0.0/gems/fssm-0.2.10/profile/prof-cache.rb
torquebox-console-0.3.0 vendor/bundle/jruby/1.9/gems/haml-3.1.8/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.2 vendor/bundle/gems/sass-3.1.15/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.4/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.6/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.2 vendor/bundle/gems/haml-3.1.5/vendor/sass/vendor/fssm/profile/prof-cache.rb
classiccms-0.7.1 vendor/bundle/gems/haml-3.1.4/vendor/sass/vendor/fssm/profile/prof-cache.rb