profile_data_mapper.rb

Path: profile_data_mapper.rb
Last Update: Mon Feb 22 19:23:45 +0000 2010

Required files

environment   ruby-prof  

Methods

profile  

Public Instance methods

RubyProf, making profiling Ruby pretty since 1899!

[Source]

    # File profile_data_mapper.rb, line 7
 7: def profile(&b)
 8:   result = RubyProf.profile &b
 9: 
10:   printer = RubyProf::GraphHtmlPrinter.new(result)
11:   File::open('profile_results.html', 'w+') do |file|
12:     printer.print(file, 0)
13:   end
14: end

[Validate]