    # File lib/merb-core/core_ext/kernel.rb, line 196
      def __profile__(name, min=1, iter=100)
        require 'ruby-prof' unless defined?(RubyProf)
        return_result = ''
        result = RubyProf.profile do
          iter.times{return_result = yield}
        end
        printer = RubyProf::GraphHtmlPrinter.new(result)
        path = File.join(Merb.root, 'log', "#{name}.html")
        File.open(path, 'w') do |file|
          printer.print(file, {:min_percent => min,
                          :print_file => true})
        end
        return_result
      end