Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
rdp committed Apr 25, 2011
1 parent 471c610 commit 1368043
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 11 deletions.
4 changes: 4 additions & 0 deletions CHANGES
@@ -1,3 +1,7 @@
0.10.5
=======================
1.8.6 compat for -v command (bug fix)

0.10.4
=======================
Faster load time for ruby-prof itself.
Expand Down
7 changes: 3 additions & 4 deletions README.rdoc
Expand Up @@ -109,16 +109,14 @@ has not yet started. In addition, resume can also take a block:
With this usage, resume will automatically call pause at the
end of the block.


=== require unprof

The third way of using ruby-prof is by requiring unprof.rb:

require 'unprof'

This will start profiling immediately at that point and will output the results
using a flat profile report after the process ends.

using a flat profile report when the process ends.

== Method Elimination

Expand Down Expand Up @@ -442,7 +440,8 @@ profiled. Most programs will run approximately twice as slow
while highly recursive programs (like the fibonacci series test)
will run three times slower.

Because of some threading difficulties in 1.9, it currently runs a bit slower there.
Because of some threading difficulties in 1.9, it currently runs a
bit slower there, as well.
http://www.ruby-forum.com/topic/201329

== License
Expand Down
8 changes: 3 additions & 5 deletions bin/ruby-prof
Expand Up @@ -8,12 +8,10 @@
#
# ruby_prof [options] <script.rb> [--] [script-options]"
#
# Options:
# Various options:
# run "$ ruby-prof --help" to see them
#
#
# See also: {flat profiles}[link:files/examples/flat_txt.html], {graph profiles}[link:files/examples/graph_txt.html], {html graph profiles}[link:files/examples/graph_html.html]
#

require 'ostruct'
require 'optparse'
Expand All @@ -29,7 +27,7 @@ options.specialized_instruction = false

opts = OptionParser.new do |opts|
opts.banner = "ruby_prof #{RubyProf::VERSION}\n" +
"Usage: ruby-prof [options] <script.rb> [--] [script-options]"
"Usage: ruby-prof [options] <script.rb> [--] [profiled-script-command-line-options]"

opts.separator ""
opts.separator "Options:"
Expand Down Expand Up @@ -127,7 +125,7 @@ opts = OptionParser.new do |opts|
exit
end

opts.on("-v","Show version, set $VERBOSE to true, profile script") do
opts.on("-v","Show version, set $VERBOSE to true, profile script if option given") do
puts "ruby version: " + [RUBY_PATCHLEVEL, RUBY_PLATFORM, RUBY_VERSION].join(' ')
$VERBOSE = true
end
Expand Down
4 changes: 2 additions & 2 deletions ext/ruby_prof/version.h
@@ -1,4 +1,4 @@
#define RUBY_PROF_VERSION "0.10.4" // for easy parsing from rake files
#define RUBY_PROF_VERSION "0.10.5" // for easy parsing from rake files
#define RUBY_PROF_VERSION_MAJ 0
#define RUBY_PROF_VERSION_MIN 10
#define RUBY_PROF_VERSION_MIC 4
#define RUBY_PROF_VERSION_MIC 5

0 comments on commit 1368043

Please sign in to comment.