5 result = RubyProf.profile do
6 Redwood::ThreadSet.new(ARGV.map { |fn| Redwood::MBox::Scanner.new fn }).load_n_threads 100
9 printer = RubyProf::GraphHtmlPrinter.new(result)
10 File.open("profile.html", "w") { |f| printer.print(f, 1) }
11 puts "report in profile.html"