Sha256: 2360172b3e7c582cfa40b067755cde9251d35fd2232a13871e1a9a01c2b9afef
Contents?: true
Size: 669 Bytes
Versions: 27
Compression:
Stored size: 669 Bytes
Contents
#!/usr/bin/env ruby # File: script/profile_subject require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib ri_cal])) require 'rubygems' subject_name = ARGV[0] || "paris_eastern" require File.expand_path(File.join(File.dirname(__FILE__), %w[.. performance], [subject_name], "subject")) devnul = Object.new def devnul.puts(string) end subject = Subject.new(devnul) require 'ruby-prof' result = RubyProf.profile do subject.run end out_file = File.expand_path(File.join(File.dirname(__FILE__), %w[.. performance_data], "#{subject_name}.calltree")) printer = RubyProf::CallTreePrinter.new(result) File.open(out_file, 'w') do |f| printer.print(f) end
Version data entries
27 entries across 27 versions & 3 rubygems