bin/ruby-prof in ruby-prof-0.15.9 vs bin/ruby-prof in ruby-prof-0.16.0
- old
+ new
@@ -100,22 +100,22 @@
end
opts.on('--mode=measure_mode',
[:process, :wall, :cpu, :allocations, :memory, :gc_runs, :gc_time],
'Select what ruby-prof should measure:',
- ' process - Process time (default).',
- ' wall - Wall time.',
+ ' wall - Wall time (default).',
+ ' process - Process time.',
' cpu - CPU time (Pentium and PowerPCs only).',
' allocations - Object allocations (requires patched Ruby interpreter).',
' memory - Allocated memory in KB (requires patched Ruby interpreter).',
' gc_runs - Number of garbage collections (requires patched Ruby interpreter).',
' gc_time - Time spent in garbage collection (requires patched Ruby interpreter).') do |measure_mode|
case measure_mode
- when :process
- options.measure_mode = RubyProf::PROCESS_TIME
when :wall
options.measure_mode = RubyProf::WALL_TIME
+ when :process
+ options.measure_mode = RubyProf::PROCESS_TIME
when :cpu
options.measure_mode = RubyProf::CPU_TIME
when :allocations
options.measure_mode = RubyProf::ALLOCATIONS
when :memory