script/profile_subject in ri_cal-0.8.1 vs script/profile_subject in ri_cal-0.8.2
- old
+ new
@@ -18,10 +18,12 @@
result = RubyProf.profile do
subject.run
end
out_file = File.expand_path(File.join(File.dirname(__FILE__), %w[.. performance_data], "#{subject_name}.calltree"))
+puts "out_file is #{out_file}"
printer = RubyProf::CallTreePrinter.new(result)
+puts "got printer"
File.open(out_file, 'w') do |f|
printer.print(f)
end
\ No newline at end of file