Ruby performance

1,057 views
1,006 views

Published on

A quick tour of how to use ruby-prof gem

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,057
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide







  • Ruby performance

    1. 1. Ruby Performance
    2. 2. Performance Profiling require 'rubygems' require 'ruby-prof' result = RubyProf.profile do your_code_here end
    3. 3. Call Graph printer = RubyProf::GraphPrinter.new(result) printer.print(STDOUT, 0)
    4. 4. Call Graph printer = RubyProf::GraphPrinter.new(result) printer.print(STDOUT, 0)
    5. 5. Flat printer = RubyProf::FlatPrinter.new(result) printer.print(STDOUT, 0)
    6. 6. Flat

    ×