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

Version Path
ebeigarts-ri_cal-0.8.1 script/profile_subject
rubyredrick-ri_cal-0.6.0 script/profile_subject
rubyredrick-ri_cal-0.6.1 script/profile_subject
rubyredrick-ri_cal-0.6.2 script/profile_subject
rubyredrick-ri_cal-0.6.3 script/profile_subject
rubyredrick-ri_cal-0.7.0 script/profile_subject
rubyredrick-ri_cal-0.7.1 script/profile_subject
rubyredrick-ri_cal-0.7.2 script/profile_subject
rubyredrick-ri_cal-0.7.4 script/profile_subject
rubyredrick-ri_cal-0.7.5 script/profile_subject
rubyredrick-ri_cal-0.7.7 script/profile_subject
rubyredrick-ri_cal-0.8.0 script/profile_subject
rubyredrick-ri_cal-0.8.1 script/profile_subject
ri_cal-0.8.1 script/profile_subject
ri_cal-0.8.0 script/profile_subject
ri_cal-0.7.6 script/profile_subject
ri_cal-0.7.7 script/profile_subject
ri_cal-0.7.0 script/profile_subject
ri_cal-0.7.1 script/profile_subject
ri_cal-0.7.2 script/profile_subject