Skip to content

Commit

Permalink
sort options alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
paddor committed Jan 16, 2024
1 parent 63bd3c6 commit 59ccf23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/ruby-prof
Expand Up @@ -17,6 +17,7 @@ module RubyProf
#
# Options:
# --allow_exceptions Raise exceptions encountered during profiling (true) or suppress them (false)
# --dont-start Don't start profile yet (start manually with RubyProf::Profile.current.start)
# -E, --eval-noprof=code execute the ruby statements (not profiled)
# --exclude=methods A comma separated list of methods to exclude.
# Specify instance methods via # (Integer#times)
Expand Down Expand Up @@ -45,7 +46,6 @@ module RubyProf
# self - Self time
# wait - Wait time
# child - Child time
# --dont-start Don't start profile yet (start manually with RubyProf::Profile.current.start)
# --track_allocations Track allocations while profiling
# -v, --version version Show version (1.1.0)
# -h, --help Show help message
Expand Down Expand Up @@ -126,6 +126,10 @@ module RubyProf
options.allow_exceptions = true
end

opts.on('--dont-start', "Don't start profile yet (start manually with RubyProf::Profile.current.start)") do
options.dont_start = true
end

opts.on('-E code', '--eval-noprof=code', 'execute the ruby statements (not profiled)') do |code|
options.pre_execs << code
end
Expand Down Expand Up @@ -234,10 +238,6 @@ module RubyProf
end
end

opts.on('--dont-start', "Don't start profile yet (start manually with RubyProf::Profile.current.start)") do
options.dont_start = true
end

opts.on('--track_allocations', 'Track allocations while profiling') do
options.track_allocations = true
end
Expand Down

0 comments on commit 59ccf23

Please sign in to comment.