blob: dfcc2c60793a6bded7f2e2f14bc51c596d38ffee (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
  | 
begin
  require 'rubygems'
  require 'ruby-prof'
rescue LoadError
  abort 'This command requires the ruby-prof gem'
end
require 'formula'
RubyProf.start
Formula.names.each { |n| Formula.factory(n) }
RubyProf::GraphHtmlPrinter.new(RubyProf.stop).print(STDOUT)
  |